Expand description
Selector matching.
Structs§
- Data resulting from performing the CSS cascade that is specific to a given origin.
- CascadeDataCache π
- CascadeDataCacheKey πA key in the cascade data cache.
- CascadeLayer π
- The id of a given container condition, a sequentially-increasing identifier for a given style set.
- ContainingRuleState πA struct containing state from ancestor rules like @layer / @import / @container / nesting / @scope.
- All the computed information for all the stylesheets that apply to the document.
- An iterator over the cascade data of a given document.
- The empty UA cascade data for un-filled stylists.
- This struct holds data which users of Stylist may want to extract from stylesheets which can be done at the same time as updating.
- An iterator over the different ExtraStyleData.
- A set of rules for element and pseudo-elements.
- The id of a given layer, a sequentially-increasing identifier.
- A map that is sorted in layer order.
- A vector that is sorted in layer order.
- Wrapper to allow better tracking of memory usage by page rule lists.
- Stores page rules indexed by page names.
- SelectorMapEntry implementation for use in our revalidation selector map.
- A rule, that wraps a style rule, but represents a single selector of the rule.
- ScopeBoundWithHashes π
- The id of a given scope condition, a sequentially-increasing identifier for a given style set.
- ScopeRootCandidates π
- This structure holds all the selectors and device characteristics for a given document. The selectors are converted into
Rule
s and sorted intoSelectorMap
s keyed off stylesheet origin and pseudo-element (seeCascadeData
). - A selector visitor implementation that collects all the state the Stylist cares about a selector.
- StylistStylesheetSet πA wrapper over a DocumentStylesheetSet that can be
Sync
, since itβs only used and exposed via mutable methods in theStylist
. - A cache of computed user-agent data, to be shared across documents.
- UserAgentCascadeData π
Enums§
- Whether author styles are enabled.
- Nested declarations have effectively two behaviors:
- What cascade levels to include when styling elements.
:scope
selector, depending on the use case, can match a shadow host. If used outside of@scope
, it cannot possibly match the host. Even when inside of@scope
, itβs conditional if the selector will match the shadow host.- Implicit scope root, which may or may not be cached (i.e. For shadow DOM author styles that are cached and shared).
Traits§
Functions§
- A function to be able to test the revalidation stuff.
Type Aliases§
- PartMap π
- ReplacedSelectors π
- The type of the stylesheets that the stylist contains.