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.
- EnvironmentVariable ๐
- NonCustomReferences ๐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.
- VarOrEnvReference ๐
- VariableFallback ๐
- 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 ๐Replace
var()
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.
- EnvironmentEvaluator ๐
- A custom property name is just an
Atom
. - Both specified and computed values are VariableValues, the difference is whether var() functions are expanded.