chromium/third_party/blink/renderer/core/css/cssom/css_style_value.idl

// Copyright 2015 The Chromium Authors
// 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);
};