CSSVariableReferenceValue()

Draft: This page is not complete.

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[, fallback]])

Parameters

variable

A custom property name.

fallback

Optional. A custom property fallback value.

Specifications

Specification
CSS Typed OM Level 2 (CSS Typed OM 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.