Module selectors::matching [] [src]

Structs

DeclarationBlock

A property declaration together with its precedence among rules of equal specificity so that we can sort them.

ElementFlags

Flags set on elements during the matching process.

Rule
SelectorMap

Map element data to Rules whose last simple selector starts with them.

Constants

HAS_EDGE_CHILD_SELECTOR

When a child is added or removed from this element, the first and last children must be restyled, because they may match :first-child, :last-child, or :only-child.

HAS_SLOW_SELECTOR

When a child is added or removed from this element, all the children must be restyled, because they may match :nth-last-child, :last-of-type, :nth-last-of-type, or :only-of-type.

HAS_SLOW_SELECTOR_LATER_SIBLINGS

When a child is added or removed from this element, any later children must be restyled, because they may match :nth-child, :first-of-type, or :nth-of-type.

Statics

RECOMMENDED_SELECTOR_BLOOM_FILTER_SIZE

Functions

matches
matches_compound_selector

Determines whether the given element matches the given single or compound selector.

matches_simple_selector

Determines whether the given element matches the given single selector.