| // 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; |
| // TODO(meade): Should be (CSSStyleValue or sequence<CSSStyleValue>)? instead of object?. Fix when the code generator supports this. |
| // Putting Exposed=Window in the next line makes |parse| not exposed to PaintWorklet. |
| [RaisesException, CallWith=ScriptState, Exposed=Window] static object? parse(DOMString property, DOMString cssText); |
| }; |