Module style::custom_properties
source ยท Expand description
Support for custom properties for cascading variables.
Macrosยง
- lnf_int ๐
- lnf_
int_ ๐variable - make_
variable ๐
Structsยง
- A pair of separate CustomPropertiesMaps, split between custom properties that have the inherit flag set and those with the flag unset.
- The environment from which to get
env
function values. - A struct that takes care of encapsulating the cascade process for custom properties.
- Environment
Variable ๐ - NonCustom
References ๐Set of flags to non-custom references this custom property makes. - References ๐A struct holding information about the external references to that a custom property value may have.
- VarOr
EnvReference ๐ - Variable
Fallback ๐ - A value for a custom property is just a set of tokens.
Enumsยง
- Whether to defer resolving custom properties referencing font relative units.
- Substitution ๐
Staticsยง
Functionsยง
- compute_
value ๐ - do_
substitute_ ๐chunk - Like parse_declaration_value, but accept
!
and;
since they are only invalid at the top level. - Parse a custom property name.
- Removes the named registered custom property and inserts its uncomputed initial value.
- Replace var() and env() functions, returning the resulting CSS string.
- substitute_
all ๐Resolve all custom properties to either substituted, invalid, or unset (meaning we should use the inherited value). - substitute_
internal ๐Replacevar()
andenv()
functions. ReturnErr(..)
for invalid at computed time. - Replace
var()
andenv()
functions in a pre-existing variable value.
Type Aliasesยง
- Both specified and computed values are VariableValues, the difference is whether var() functions are expanded.
- Environment
Evaluator ๐ - A custom property name is just an
Atom
. - Both specified and computed values are VariableValues, the difference is whether var() functions are expanded.