CSSVariableReferenceValue()
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Creates a new CSSVariableReferenceValue
.
Syntax
new CSSVariableReferenceValue(variable)
new CSSVariableReferenceValue(variable, fallback)
Parameters
variable
fallback
Optional
Specifications
Specification |
---|
CSS Typed OM Level 2 # dom-cssvariablereferencevalue-cssvariablereferencevalue |
Browser compatibility
BCD tables only load in the browser
- variable
-
A CSS custom property
- fallback
-
Optional. A custom property fallback value.