Module custom_properties

Source
Expand description

Macrosยง

lnf_int ๐Ÿ”’
lnf_int_variable ๐Ÿ”’
make_variable ๐Ÿ”’

Structsยง

ComputedCustomProperties
A pair of separate CustomPropertiesMaps, split between custom properties that have the inherit flag set and those with the flag unset.
CssEnvironment
The environment from which to get env function values.
CustomPropertiesBuilder
A struct that takes care of encapsulating the cascade process for custom properties.
EnvironmentVariable ๐Ÿ”’
NonCustomReferenceMap ๐Ÿ”’
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.
Substitution ๐Ÿ”’
VarOrEnvReference ๐Ÿ”’
VariableFallback ๐Ÿ”’
VariableValue
A value for a custom property is just a set of tokens.

Enumsยง

DeferFontRelativeCustomPropertyResolution
Whether to defer resolving custom properties referencing font relative units.
SingleNonCustomReference ๐Ÿ”’

Staticsยง

CHROME_ENVIRONMENT_VARIABLES ๐Ÿ”’
ENVIRONMENT_VARIABLES ๐Ÿ”’

Functionsยง

compute_value ๐Ÿ”’
compute_variable_value
Given a potentially registered variable value turn it into a computed custom property value.
do_substitute_chunk ๐Ÿ”’
eval_gtk_csd_titlebar_radius ๐Ÿ”’
find_non_custom_references ๐Ÿ”’
get_content_preferred_color_scheme ๐Ÿ”’
get_hairline ๐Ÿ”’
get_safearea_inset_bottom ๐Ÿ”’
get_safearea_inset_left ๐Ÿ”’
get_safearea_inset_right ๐Ÿ”’
get_safearea_inset_top ๐Ÿ”’
get_scrollbar_inline_size ๐Ÿ”’
handle_invalid_at_computed_value_time ๐Ÿ”’
parse_declaration_value ๐Ÿ”’
https://drafts.csswg.org/css-syntax-3/#typedef-declaration-value
parse_declaration_value_block ๐Ÿ”’
Like parse_declaration_value, but accept ! and ; since they are only invalid at the top level.
parse_name
Parse a custom property name.
remove_and_insert_initial_value ๐Ÿ”’
Removes the named registered custom property and inserts its uncomputed initial value.
substitute
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() and env() functions. Return Err(..) for invalid at computed time.
substitute_one_reference ๐Ÿ”’
substitute_references_if_needed_and_apply ๐Ÿ”’
Replace var() and env() 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.
EnvironmentEvaluator ๐Ÿ”’
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.