CSSVariableReferenceValue:variable 属性
基线 2026>
最近可用
自 2026年11月 起,此特性已在最新浏览器中得到支持。但在较旧的设备或浏览器中可能无法运行。
Want more browser support for this feature? Tell us why.
CSSVariableReferenceValue 接口的 variable 属性返回 CSSVariableReferenceValue 的 自定义属性名称。
值
以 -- 开头的字符串(即自定义属性名称)。
规范
| 规范 |
|---|
| CSS Typed OM Level 1> # dom-cssvariablereferencevalue-variable> |