gecko-dev/servo/components/selectors
Tim Nguyen 76a6febc54 Bug 1685621 - Fix serialization of complex :not(). r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D101090
2021-01-08 10:12:00 +00:00
..
Cargo.toml Bug 1680558 - Update cssparser to get ParserState in rule parser. r=heycam 2020-12-04 10:47:55 +00:00
README.md
attr.rs Bug 1676513 - Fix clippy warnings r=emilio,webdriver-reviewers,whimboo,rhunt 2020-11-17 12:02:22 +00:00
bloom.rs
build.rs Bug 1676513 - Fix clippy warnings r=emilio,webdriver-reviewers,whimboo,rhunt 2020-11-17 12:02:22 +00:00
builder.rs Bug 933562 - Implement complex :not(). r=jfkthame 2020-10-29 18:03:54 +00:00
context.rs Bug 1676513 - Fix clippy warnings r=emilio,webdriver-reviewers,whimboo,rhunt 2020-11-17 12:02:22 +00:00
lib.rs Bug 933562 - Implement complex :not(). r=jfkthame 2020-10-29 18:03:54 +00:00
matching.rs Bug 1676513 - Fix lint error in matching.rs a=lint-fix 2020-11-17 14:48:54 +02:00
nth_index_cache.rs Bug 1676513 - Fix clippy warnings r=emilio,webdriver-reviewers,whimboo,rhunt 2020-11-17 12:02:22 +00:00
parser.rs Bug 1685621 - Fix serialization of complex :not(). r=emilio 2021-01-08 10:12:00 +00:00
sink.rs
tree.rs Bug 1678881 - Avoid some allocations in selector serialization. r=xidorn 2020-11-22 01:02:22 +00:00
visitor.rs Bug 1629735 - Implement parsing / selector-matching for :is() and :where(). r=heycam 2020-04-17 13:37:59 +00: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.