Classes | |
| class | donner::css::SelectorTraversalBudget |
| Aggregate bound on selector work: element visits and bounded chunks of text inspection. More... | |
| class | donner::css::SelectorTraversalNavigation< T > |
| Navigation that charges both visible elements and adapter-specific skipped nodes. More... | |
| struct | donner::css::SelectorMatchOptions< T > |
| Options for matching a selector against an element. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
| namespace | donner::css |
| Donner CSS library, a standalone composable CSS parser. | |
| struct donner::css::SelectorMatchOptions |
Options for matching a selector against an element.
This is used to pass additional information to the matching algorithm, such as the element to match against for relative queries.
| T | A type that fulfills the ElementLike concept, matching the Selector::matches method. |
| Class Members | ||
|---|---|---|
| bool | allowScopeOnlyMatch = false | Permit scope-only ancestor and filter matching. |
| const T * | relativeToElement | Enables relative querying and uses this element as the reference point. For example, > div will match div that is a child of relativeToElement. |
| const T * | scopeElement = nullptr | Element to match against :scope queries. Cannot be matched directly, but can be used for relative matching. |
| SelectorTraversalBudget * | traversalBudget = nullptr | Shared selector-work budget. |