blob: d63a4b1ae7bc8fee2e8dd7f11247472903c6e150 [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,LayoutWorklet,PaintWorklet)
] interface CSSStyleValue {
stringifier;
// Putting Exposed=Window in the next line makes |parse| not exposed to Worklets.
[RaisesException, Exposed=Window, CallWith=ExecutionContext] static CSSStyleValue parse(CSSOMString property, CSSOMString cssText);
[RaisesException, Exposed=Window, CallWith=ExecutionContext] static sequence<CSSStyleValue> parseAll(CSSOMString property, CSSOMString cssText);
};