gecko-dev/servo/components/selectors
Emilio Cobos Álvarez 2bf7e6cfc9 Bug 1704179 - Add a CSS error to the console when using non-featureless :host selectors. r=boris
(which would never match by definition).

Differential Revision: https://phabricator.services.mozilla.com/D111610
2021-04-15 09:33:58 +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 1695251 - Cherry-pick various servo changes. 2021-02-26 17:00:55 +00: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 1704179 - Add a CSS error to the console when using non-featureless :host selectors. r=boris 2021-04-15 09:33:58 +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

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.