blob: 79757bb157d475d5eb74d656f101c1618d60b60d [file] [log] [blame]
// Copyright 2017 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.
// Spec: https://drafts.css-houdini.org/css-typed-om/#the-stylepropertymap
[
Exposed=(Window,LayoutWorklet,PaintWorklet)
] interface StylePropertyMapReadOnly {
iterable<CSSOMString, sequence<CSSStyleValue>>;
/* TODO: This should return (undefined or CSSStyleValue),
but IDL doesn't have anything like that yet. See:
https://github.com/heycam/webidl/issues/60 */
[RaisesException, CallWith=ExecutionContext] CSSStyleValue? get(CSSOMString property);
[RaisesException, CallWith=ExecutionContext] sequence<CSSStyleValue> getAll(CSSOMString property);
[RaisesException, CallWith=ExecutionContext] boolean has(CSSOMString property);
readonly attribute unsigned long size;
};