gecko-dev/servo/components/selectors
Cristina Horotan fae61692c7 Backed out 2 changesets (bug 1845095) for causing wpt failures at is-pseudo-containing-complex-in-has.html CLOSED TREE
Backed out changeset 28c18b287904 (bug 1845095)
Backed out changeset fb0e9233e07d (bug 1845095)
2023-07-28 19:07:26 +03:00
..
relative_selector Backed out 2 changesets (bug 1845095) for causing wpt failures at is-pseudo-containing-complex-in-has.html CLOSED TREE 2023-07-28 19:07:26 +03:00
Cargo.toml Bug 1841160 - Update phf to 0.11.2. r=emilio,supply-chain-reviewers 2023-07-04 07:29:08 +00:00
README.md
attr.rs Bug 1837734 - Remove the never_matches field from attr selectors. r=boris 2023-06-14 21:08:22 +00:00
bloom.rs
build.rs
builder.rs Bug 1844900 - Improve memory usage with nesting. r=dshin 2023-07-27 21:38:10 +00:00
context.rs Backed out 2 changesets (bug 1845095) for causing wpt failures at is-pseudo-containing-complex-in-has.html CLOSED TREE 2023-07-28 19:07:26 +03:00
lib.rs Bug 1822177: Simple relative selector caching. r=emilio 2023-07-25 14:23:27 +00:00
matching.rs Backed out 2 changesets (bug 1845095) for causing wpt failures at is-pseudo-containing-complex-in-has.html CLOSED TREE 2023-07-28 19:07:26 +03:00
nth_index_cache.rs Bug 1808228 - Implement selector matching for :nth-child(An+B of selector list) and :nth-last-child(An+B of selector list) r=emilio 2023-01-16 11:26:41 +00:00
parser.rs Backed out 2 changesets (bug 1845095) for causing wpt failures at is-pseudo-containing-complex-in-has.html CLOSED TREE 2023-07-28 19:07:26 +03:00
sink.rs
tree.rs Backed out 2 changesets (bug 1845095) for causing wpt failures at is-pseudo-containing-complex-in-has.html CLOSED TREE 2023-07-28 19:07:26 +03:00
visitor.rs Bug 1835681 - Update bitflags in the dom and style crates. r=zrhoffman 2023-05-30 08:04:51 +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.