blob: 8fe50596fc16cce1f4ccfc41db72dad93199d57d [file] [log] [blame]
// Copyright 2015 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.
// CSSStyleValue is the base class for all CSS values accessible from Typed OM.
// Values that are not yet supported as specific types are also returned as
// base CSSStyleValues.
// Spec: https://drafts.css-houdini.org/css-typed-om/#stylevalue-objects
[
Exposed(Window CSSTypedOM, PaintWorklet CSSPaintAPI)
] interface CSSStyleValue {
stringifier;
// Putting Exposed=Window in the next line makes |parse| not exposed to PaintWorklet.
[RaisesException, Exposed=Window, CallWith=ExecutionContext] static CSSStyleValue? parse(DOMString property, DOMString cssText);
[RaisesException, Exposed=Window, CallWith=ExecutionContext] static sequence<CSSStyleValue>? parseAll(DOMString property, DOMString cssText);
};