Do CSS selectors with rust-selectors
The selectors crate comes from Servo. It has a few traits that one can implement on one's tree of elements, and then one can ask "which selectors match this element?".
There is an example of using this crate in kuchiki.
In librsvg, we need to replace the shitty CSS selectors code that only handles a few cases.