gecko-dev/servo/components/selectors
Nazım Can Altınova 5dcd306c80 servo: Merge #17484 - Bump cssparser version to 0.16.1 in toml files (from canaltinova:upup); r=emilio
<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 9eaef6c3bbf10e2671c4d84f3dd0cd5cc0f00267
2017-06-22 16:52:00 -07:00
..
attr.rs servo: Merge #17213 - ID and class selectors are ASCII case-insensitive in quirks mode (from servo:quirk-case); r=bholley 2017-06-12 15:52:29 -07:00
bloom.rs servo: Merge #17462 - various bloom filter optimizations (from bholley:bloom_optimizations); r=emilio 2017-06-22 14:39:30 -07: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 #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
Cargo.toml servo: Merge #17484 - Bump cssparser version to 0.16.1 in toml files (from canaltinova:upup); r=emilio 2017-06-22 16:52:00 -07:00
context.rs servo: Merge #17292 - style: Implement a more fine-grained invalidation method (from emilio:better-style-invalidation); r=heycam 2017-06-13 04:56:09 -07:00
gecko_like_types.rs servo: Merge #16900 - Bug 1364850: Move PseudoElement to be just another combinator in selectors. r=bholley (from emilio:pseudos); r=bholley 2017-05-17 05:40:14 -05:00
lib.rs servo: Merge #17462 - various bloom filter optimizations (from bholley:bloom_optimizations); r=emilio 2017-06-22 14:39:30 -07:00
matching.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
parser.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
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 #17266 - stylo: Support :active and :hover quirk (from canaltinova:active_hover_quirk); r=bholley,emilio 2017-06-10 12:25:59 -07:00
tree.rs servo: Merge #17427 - Stylo: Correct style match for element instances under a use-element … (from CJKu:cku-master); r=emilio 2017-06-20 05:17:45 -07:00
visitor.rs servo: Merge #17055 - Allow style sharing for elements with ids as long as the ID is not being used for styling (from bzbarsky:sharing-across-ids); r=emilio 2017-06-05 11:05:00 -07: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.