blob: 685c20f086ca1b492b6feae45a2625411a092d0e [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
[
Constructor(sequence<CSSUnparsedSegment> members),
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSUnparsedValue : CSSStyleValue {
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;