Expand description
The main cascading algorithm of the style system.
Structsยง
- Cascade ๐
- Declaration ๐
- Declaration
Iterator ๐ - Declarations ๐
- The set of property declarations from our rules.
- Keyframe
Custom Properties Builder - Resolves the custom properties for a single
@keyframeskeyframe, layered on top of the base styleโs already-computed custom properties. - Prioritary
Declaration ๐Position - โPrioritaryโ properties are properties that other properties depend on in one way or another.
- Reverted
Set ๐ - SeenSet ๐
- Seen
Substitution ๐Functions
Enumsยง
- Cascade
Mode - Whether weโre cascading for visited or unvisited styles.
- First
Line Reparenting - Whether weโre resolving a style with the purposes of reparenting for ::first-line.
Functionsยง
- apply_
declarations - NOTE: This function expects the declaration with more priority to appear first.
- cascade
- Performs the CSS cascade, computing new styles for an element from its parent style.
- cascade_
rules ๐ - find_
non_ ๐custom_ references - Only registered (typed) properties emit a non-custom edge, from their own value.
- is_
base_ ๐appearance - iter_
declarations ๐ - substitute_
all ๐ - tweak_
when_ ๐ignoring_ colors
Type Aliasesยง
- Declaration
Index ๐ - We track the index only for prioritary properties. For other properties we can just iterate.
- Declarations
ToApply ๐Unless Overriden - For ignored colors mode, we sometimes want to do something equivalent to
โrevert-or-initialโ, where we
revertfor a given origin, but then apply a given initial value if nothing in other origins did override it.