Skip to main content

Module css

Module css 

Source
Expand description

CSS selectors, as Selectors Level 4 defines them and browsers match them in a static page: parsed once, matched right to left.

What browsers do on a page nobody is looking at decides the rest: :hover, :focus and the like parse but never match, as does a pseudo-element (::before), since no element in a tree is one; :scope is the element a query runs from, and ids and classes compare exactly except in a quirks-mode document.

Structs§

MatchOptions
What matching needs that a document doesn’t carry. The default has none of it, so :target and :local-link match nothing.
MatchTimeout
A query that ran past MatchOptions::budget.
ParseOptions
What a stylesheet’s @namespace rules would declare, for SelectorList::parse_with. The default declares nothing, as SelectorList::parse does.
Select
The matches of SelectorList::select_iter, in document order.
SelectorError
A selector that couldn’t be parsed, and why.
SelectorList
A comma-separated list of selectors; an element matches if any does.