| // 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. |
| |
| [ |
| Exposed=(Window,PaintWorklet), |
| RuntimeEnabled=CSSTypedOM, |
| ] interface StylePropertyMap { |
| [RaisesException] void append(DOMString property, (CSSStyleValue or sequence<CSSStyleValue> or DOMString) value); |
| [RaisesException, ImplementedAs=remove] void delete(DOMString property); |
| [RaisesException] CSSStyleValue? get(DOMString property); |
| [RaisesException] sequence<CSSStyleValue> getAll(DOMString property); |
| [RaisesException] boolean has(DOMString property); |
| [RaisesException] void set(DOMString property, (CSSStyleValue or sequence<CSSStyleValue> or DOMString) value); |
| iterable<DOMString, (CSSStyleValue or sequence<CSSStyleValue>)>; |
| sequence<DOMString> getProperties(); |
| }; |