gecko-dev/servo/components/selectors
Bobby Holley 5f78e33b00 servo: Merge #18595 - Implement an nth-index cache (from bholley:nth_index_cache); r=emilio
https://bugzilla.mozilla.org/show_bug.cgi?id=1334730

Source-Repo: https://github.com/servo/servo
Source-Revision: be9c8ec07a0ca745adf1b412d32b3b32adec122c

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 3a03da9ae7e549b53b72306c7ec5f87365461470
2017-09-21 18:10:05 -05:00
..
attr.rs servo: Merge #18179 - Automatically verify that derive() lists are alphabetically ordered #… (from davidcl:master); r=jdm 2017-08-23 17:18:31 -05:00
bloom.rs servo: Merge #18017 - style: Move all origin-specific cascade data to PerOriginCascadeData (from heycam:split-cascade); r=emilio 2017-08-09 19:28:07 -05:00
build.rs servo: Merge #16915 - Shrink selectors::Component, implement attr selector (in)case-sensitivity (from servo:attr-selectors); r=nox,emilio 2017-05-18 18:45:20 -05:00
builder.rs servo: Merge #18290 - Report more specific CSS selector errors (from jdm:selectorerr); r=heycam 2017-08-29 09:46:22 -05:00
Cargo.toml servo: Merge #18589 - Plumbing for the nth-index cache (from bholley:nth_index_plumbing); r=emilio 2017-09-21 01:24:01 -05:00
context.rs servo: Merge #18595 - Implement an nth-index cache (from bholley:nth_index_cache); r=emilio 2017-09-21 18:10:05 -05:00
gecko_like_types.rs servo: Merge #18179 - Automatically verify that derive() lists are alphabetically ordered #… (from davidcl:master); r=jdm 2017-08-23 17:18:31 -05:00
lib.rs servo: Merge #18595 - Implement an nth-index cache (from bholley:nth_index_cache); r=emilio 2017-09-21 18:10:05 -05:00
matching.rs servo: Merge #18595 - Implement an nth-index cache (from bholley:nth_index_cache); r=emilio 2017-09-21 18:10:05 -05:00
nth_index_cache.rs servo: Merge #18595 - Implement an nth-index cache (from bholley:nth_index_cache); r=emilio 2017-09-21 18:10:05 -05:00
parser.rs servo: Merge #18452 - Overhaul MallocSizeOf and related things (from nnethercote:bug-1398737); r=jdm 2017-09-11 22:11:25 -05:00
README.md
sink.rs servo: Merge #17439 - Match compound selectors left-to-right (second try) (from bholley:compound_left_to_right); r=SimonSapin 2017-06-21 09:28:43 -07:00
size_of_tests.rs servo: Merge #17687 - Support parsing ::-moz-tree-* pseudo-elements selector (from upsuper:tree-pseudo); r=heycam 2017-07-12 03:35:37 -07:00
tree.rs servo: Merge #18595 - Implement an nth-index cache (from bholley:nth_index_cache); r=emilio 2017-09-21 18:10:05 -05:00
visitor.rs servo: Merge #18232 - Remove unused SelectorIter import (from ferjm:unused.selectoriter); r=emilio 2017-08-25 11:18:12 -05:00

rust-selectors

CSS Selectors library for Rust. Includes parsing and serilization of selectors, as well as matching against a generic tree of elements. Pseudo-elements and most pseudo-classes are generic as well.

Warning: breaking changes are made to this library fairly frequently (13 times in 2016, for example). However you can use this crate without updating it that often, old versions stay available on crates.io and Cargo will only automatically update to versions that are numbered as compatible.

To see how to use this library with your own tree representation, see Kuchikis src/select.rs. (Note however that Kuchiki is not always up to date with the latest rust-selectors version, so that code may need to be tweaked.) If you dont already have a tree data structure, consider using Kuchiki itself.