Expand description
Support for custom properties for cascading variables.
Structsยง
- Computed
Custom Properties - A pair of separate CustomPropertiesMaps, split between custom properties that have the inherit flag set and those with the flag unset.
- Computed
Substitution Functions - A wrapper map that encapsulates both the custom properties and attributes for a given element.
- NonCustom
Reference Map - A map from NonCustomReferenceMap to a T.
- Variable
Value - A value for a custom property is just a set of tokens.
Enumsยง
- Single
NonCustom Reference - A non-custom reference that participates in cycle resolution. TODO(emilio): This should probably eventually become just PrioritaryPropertyId.
Functionsยง
- compute_
value - Computes
cssagainst the registration of a custom property. - compute_
variable_ ๐value - Given a potentially registered variable value turn it into a computed custom property value.
- handle_
invalid_ at_ computed_ value_ time - See https://drafts.csswg.org/css-variables-2/#invalid-at-computed-value-time
- parse_
name - Parse a custom property name.
- reify_
variable_ ๐value - reify_
variable_ ๐value_ range - Reify a slice of the CSS string into UnparsedSegment entries.
- remove_
and_ ๐insert_ initial_ value - Removes the named registered custom property and inserts its uncomputed initial value.
- substitute_
references_ if_ needed_ and_ apply - Replace substitution functions in a pre-existing variable value.
Type Aliasesยง
- Computed
Value - Both specified and computed values are VariableValues, the difference is whether var() functions are expanded.
- Name
- A custom property name is just an
Atom. - Specified
Value - Both specified and computed values are VariableValues, the difference is whether var() functions are expanded.