blob: dbf53a6de2f14930669a3becc959508f5a2028c5 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Represents a CSS var() reference in a CSS value.
// Spec: https://drafts.css-houdini.org/css-typed-om/#cssvariablereferencevalue
[
Constructor(DOMString variable, optional CSSUnparsedValue fallback),
Exposed=(Window,PaintWorklet),
RuntimeEnabled=CSSTypedOM,
RaisesException=Constructor,
ImplementedAs=CSSStyleVariableReferenceValue
] interface CSSVariableReferenceValue {
[RaisesException=Setter] attribute DOMString variable;
readonly attribute CSSUnparsedValue? fallback;
};