| // 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. |
| |
| // CSSResourceValue is the base class used for representing loadable resources |
| // in Typed OM. Example subclasses may include images and fonts. |
| // Spec: https://drafts.css-houdini.org/css-typed-om/#resourcevalue-objects |
| enum CSSResourceState { |
| "unloaded", "loading", "loaded", "error" |
| }; |
| |
| [ |
| Exposed(Window CSSTypedOM, PaintWorklet CSSTypedOM) |
| ] interface CSSResourceValue : CSSStyleValue { |
| readonly attribute CSSResourceState state; |
| }; |