blob: 40696ca794018f910d4da5025583bba006e452ea [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.
// CSSUnparsedValue objects represent values that reference custom properties.
// They represent a list of string fragments and variable references.
// Spec: https://drafts.css-houdini.org/css-typed-om/#unparsedvalue-objects
[
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSUnparsedValue : CSSStyleValue {
constructor(sequence<CSSUnparsedSegment> members);
iterable<CSSUnparsedSegment>;
readonly attribute unsigned long length;
[RaisesException] getter CSSUnparsedSegment (unsigned long index);
[RaisesException] setter CSSUnparsedSegment (unsigned long index, CSSUnparsedSegment val);
};
// TODO(https://crbug.com/838890): DOMString should be CSSOMString
typedef (DOMString or CSSVariableReferenceValue) CSSUnparsedSegment;