gecko-dev/servo/components/selectors
Simon Sapin f2e4fa0a56 servo: Merge #17390 - Untry (from servo:untry); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 568ab550053fddf346806ed6cc2d3bfe37f3e1d0

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2d258d6f281ff628b88311d2f4523bed29e60ff3
2017-06-18 05:55:11 -07:00
..
Cargo.toml servo: Merge #17345 - Upgrade cssparser to 0.15 (from servo:cssparserup); r=<try> 2017-06-16 06:09:52 -07:00
README.md
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 #17281 - Pack bloom filter hashes better and save a word on Rule (from bholley:shrink_rule_again); r=emilio 2017-06-12 12:41:39 -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
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 #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
matching.rs servo: Merge #17296 - Handle PseudoElement cases in :active and :hover quirk (from canaltinova:pseudo-quirk); r=bholley 2017-06-13 08:34:04 -07:00
parser.rs servo: Merge #17390 - Untry (from servo:untry); r=nox 2017-06-18 05:55:11 -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 #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
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

README.md

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.