Module custom_properties

Module custom_properties 

Source
Expand description

Macrosยง

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

Structsยง

AttributeData ๐Ÿ”’
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.
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.
SeenSubstitutionFunctions ๐Ÿ”’
Substitution ๐Ÿ”’
SubstitutionFunctionReference ๐Ÿ”’
SubstitutionResult
Result of var(), env(), and attr() substitution.
VariableFallback ๐Ÿ”’
VariableValue
A value for a custom property is just a set of tokens.

Enumsยง

AttributeType ๐Ÿ”’
DeferFontRelativeCustomPropertyResolution
Whether to defer resolving custom properties referencing font relative units.
SingleNonCustomReference ๐Ÿ”’
SubstitutionFunctionKind
Substitution function source: var, env, attr.

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_attr_type ๐Ÿ”’
Parse = type( ) | raw-string | number | . https://drafts.csswg.org/css-values-5/#attr-notation
parse_attribute_value ๐Ÿ”’
Attribute values may reference other substitution functions we may need to process. See step 6: https://drafts.csswg.org/css-values-5/#attr-substitution
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.
quoted_css_string ๐Ÿ”’
remove_and_insert_initial_value ๐Ÿ”’
Removes the named registered custom property and inserts its uncomputed initial value.
substitute
Replace var(), env(), and attr() 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(), env(), and attr() functions. Return Err(..) for invalid at computed time.
substitute_one_reference ๐Ÿ”’
substitute_references_if_needed_and_apply ๐Ÿ”’
Replace var(), env(), and attr() 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.