CSSVariableReferenceValue.variable

Draft: This page is not complete.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The variable property of the CSSVariableReferenceValue interface returns the custom property name of the CSSVariableReferenceValue.

Syntax

var variable = cssVariableReferenceValue.variable;

Value

A USVString beginning with -- (that is, a custom property name).

Specifications

Specification
CSS Typed OM Level 2 (CSS Typed OM 2)
# dom-cssvariablereferencevalue-variable

Browser compatibility

BCD tables only load in the browser