Skip to main content

Module custom_properties

Module custom_properties 

Source
Expand description

Structsยง

ComputedCustomProperties
A pair of separate CustomPropertiesMaps, split between custom properties that have the inherit flag set and those with the flag unset.
ComputedSubstitutionFunctions
A wrapper map that encapsulates both the custom properties and attributes for a given element.
NonCustomReferenceMap
A map from NonCustomReferenceMap to a T.
VariableValue
A value for a custom property is just a set of tokens.

Enumsยง

SingleNonCustomReference
A non-custom reference that participates in cycle resolution. TODO(emilio): This should probably eventually become just PrioritaryPropertyId.

Functionsยง

compute_value
Computes css against 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ยง

ComputedValue
Both specified and computed values are VariableValues, the difference is whether var() functions are expanded.
Name
A custom property name is just an Atom.
SpecifiedValue
Both specified and computed values are VariableValues, the difference is whether var() functions are expanded.