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

The **`variable`** property of the
{{domxref("CSSVariableReferenceValue")}} interface returns the [custom property name](/en-US/docs/Web/CSS/--*) of the
{{domxref("CSSVariableReferenceValue")}}.

## Syntax

```js
var variable = cssVariableReferenceValue.variable;
```

### Value

A {{domxref('USVString')}} beginning with `--` (that is, a [custom property name](/en-US/docs/Web/CSS/--*)).

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
