blob: 2dc867aa6c27388ce7890f6db01c2212bab090a2 [file] [log] [blame]
// 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"
};
[
RuntimeEnabled=CSSTypedOM,
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface CSSResourceValue : CSSStyleValue {
readonly attribute CSSResourceState state;
};