Module style::properties::cascade
source · Expand description
The main cascading algorithm of the style system.
Structs§
- Cascade 🔒
- The set of property declarations from our rules.
- “Prioritary” properties are properties that other properties depend on in one way or another.
Enums§
- Whether we’re cascading for visited or unvisited styles.
- Whether we’re resolving a style with the purposes of reparenting for ::first-line.
Functions§
- NOTE: This function expects the declaration with more priority to appear first.
- Performs the CSS cascade, computing new styles for an element from its parent style.
Type Aliases§
- We track the index only for prioritary properties. For other properties we can just iterate.
- For ignored colors mode, we sometimes want to do something equivalent to “revert-or-initial”, where we
revert
for a given origin, but then apply a given initial value if nothing in other origins did override it.