blob: 1fc1325d779d0912915ff87be51cd008bd6d325f [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
[
Exposed=(Window,LayoutWorklet,PaintWorklet),
ImplementedAs=CSSStyleVariableReferenceValue
] interface CSSVariableReferenceValue {
[RaisesException] constructor(CSSOMString variable, optional CSSUnparsedValue? fallback = null);
[RaisesException=Setter] attribute CSSOMString variable;
readonly attribute CSSUnparsedValue? fallback;
};