Expand description
Support for custom properties for cascading variables.
Macrosยง
- lnf_int ๐
- lnf_
int_ ๐variable - make_
variable ๐
Structsยง
- Attr
Taint - In CSS Values and Units, values produced by
attr()are considered attr()-tainted, as are functions that contain an attr()-tainted value. Using an attr()-tainted value as or in amakes a declaration invalid at computed-value time. https://drafts.csswg.org/css-values-5/#attr-security - Attr
Tainted Range - For a CSS string, the range, counted in bytes, that is attr()-tainted.
- Attribute
Data - Data specific to an attr() call like type and namespace.
- Computed
Custom Properties - A pair of separate CustomPropertiesMaps, split between custom properties that have the inherit flag set and those with the flag unset.
- Computed
Substitution Functions - A wrapper map that encapsulates both the custom properties and attributes for a given element.
- CssEnvironment
- The environment from which to get
envfunction values. - Environment
Variable ๐ - NonCustom
Reference Map - A map from NonCustomReferenceMap to a T.
- Reference
Flags - Set of flags to references this custom property makes.
- References
- A struct holding information about the external references to that a custom property value may have.
- Substitution ๐
- Substitution
Function Reference - A reference to a substitution function like env() / var() / attr().
- Substitution
Result - Result of var(), env(), and attr() substitution.
- Variable
Fallback - The fallback of a particular value.
- Variable
Value - A value for a custom property is just a set of tokens.
Enumsยง
- Attribute
Type ๐ - Single
NonCustom Reference - A non-custom reference that participates in cycle resolution. TODO(emilio): This should probably eventually become just PrioritaryPropertyId.
- Substitution
Function Kind - Substitution function source: var, env, attr.
Staticsยง
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 - get_
attr_ value_ for_ cycle_ resolution - Attribute values may reference other substitution functions we may need to process. See step 6: https://drafts.csswg.org/css-values-5/#attr-substitution
- 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 - See https://drafts.csswg.org/css-variables-2/#invalid-at-computed-value-time
- parse_
attr_ ๐type - Parse
= type( ) | raw-string | number | . https://drafts.csswg.org/css-values-5/#attr-notation - 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 - 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
- Replace var(), env(), and attr() functions, returning the resulting CSS string.
- substitute_
internal ๐ - Replace
var(),env(), andattr()functions. ReturnErr(..)for invalid at computed time. - substitute_
one_ ๐reference - substitute_
references_ if_ needed_ and_ apply - Replace
var(),env(), andattr()functions in a pre-existing variable value.
Type Aliasesยง
- Computed
Value - Both specified and computed values are VariableValues, the difference is whether var() functions are expanded.
- Environment
Evaluator ๐ - Name
- A custom property name is just an
Atom. - Specified
Value - Both specified and computed values are VariableValues, the difference is whether var() functions are expanded.