---
title: CSSVariableReferenceValue()
slug: Web/API/CSSVariableReferenceValue/CSSVariableReferenceValue
tags:
  - API
  - CSS Typed Object Model API
  - CSSVariableReferenceValue
  - Constructor
  - Houdini
  - NeedsExample
  - Reference
browser-compat: api.CSSVariableReferenceValue.CSSVariableReferenceValue
---
{{APIRef("CSSOM")}}{{SeeCompatTable}}

Creates a new {{domxref('CSSVariableReferenceValue')}}.

## Syntax

```js
new CSSVariableReferenceValue(variable[, fallback]])
```

### Parameters

- _variable_
  - : A [custom property name](/en-US/docs/Web/CSS/--*).
- _fallback_
  - : Optional. A [custom
    property fallback value](/en-US/docs/Web/CSS/Using_CSS_custom_properties#custom_property_fallback_values).

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

- _variable_
  - : A CSS [custom property](/en-US/docs/Web/CSS/--*)
- _fallback_
  - : Optional. A [custom
    property fallback value](/en-US/docs/Web/CSS/Using_CSS_custom_properties#custom_property_fallback_values).
