A top-level Selector, which is a list of ComplexSelector.
More...
#include "donner/css/Selector.h"
|
|
std::ostream & | operator<< (std::ostream &os, const Selector &obj) |
| | Ostream output operator for Selector, prints a debug representation of the selector, e.g. Selector(div, .class, #id).
|
A top-level Selector, which is a list of ComplexSelector.
This represents the prelude in front of any CSS rule, e.g. div.foo > span#bar, which would be a single ComplexSelector. For a comma-separated list, such as div.foo > span#bar,
span#bar, this would be a Selector with two ComplexSelector entries.
◆ matches()
Match an element against a Selector.
- Template Parameters
-
| T | A type that fulfills the ElementLike concept, to enable traversing the tree to match the selector. |
- Parameters
-
| targetElement | Element to match against. |
| options | Options to control matching. |
- Returns
- true if any ComplexSelector in the Selector matches the given element.
The documentation for this struct was generated from the following files: