gecko-dev/servo/components/selectors
Bobby Holley b093fa5b7c servo: Merge #16578 - Fix up the style sharing cache (from bholley:fix_style_sharing_cache); r=emilio
https://bugzilla.mozilla.org/show_bug.cgi?id=1358694

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : a794839431bb0746904b1156ad94e9f3c2746319
2017-04-23 14:45:29 -05:00
..
arcslice.rs servo: Merge #16549 - store simple selectors and combinators inline (from bholley:inline_selectors); r=emilio 2017-04-20 17:05:31 -05:00
bloom.rs servo: Merge #16070 - selectors: Get rid of hashing overhead using the precomputed hash atoms have (from emilio:selectors-bloom-hash-less); r=bholley 2017-04-07 19:03:12 -05:00
Cargo.toml servo: Merge #16347 - Removing recursion from ComplexSelector (from tictakk:ticbranch); r=emilio 2017-04-16 21:02:06 -05:00
lib.rs servo: Merge #16549 - store simple selectors and combinators inline (from bholley:inline_selectors); r=emilio 2017-04-20 17:05:31 -05:00
matching.rs servo: Merge #16578 - Fix up the style sharing cache (from bholley:fix_style_sharing_cache); r=emilio 2017-04-23 14:45:29 -05:00
parser.rs servo: Merge #16549 - store simple selectors and combinators inline (from bholley:inline_selectors); r=emilio 2017-04-20 17:05:31 -05:00
README.md
tree.rs servo: Merge #16077 - Bug 1345950: stylo: Fix slow selector flags. r=bholley (from emilio:slow-flags); r=bholley 2017-03-22 03:23:51 -07:00
visitor.rs servo: Merge #16549 - store simple selectors and combinators inline (from bholley:inline_selectors); r=emilio 2017-04-20 17:05:31 -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.