2025-08-11 10:28:57 -03:00
|
|
|
#import <CSS/CSSStyleValue.idl>
|
|
|
|
|
|
|
|
|
|
// https://drafts.css-houdini.org/css-typed-om-1/#stylepropertymapreadonly
|
2025-08-14 07:13:02 -03:00
|
|
|
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
2025-08-11 10:28:57 -03:00
|
|
|
interface StylePropertyMapReadOnly {
|
|
|
|
|
// FIXME: iterable<USVString, sequence<CSSStyleValue>>;
|
|
|
|
|
(undefined or CSSStyleValue) get(USVString property);
|
|
|
|
|
sequence<CSSStyleValue> getAll(USVString property);
|
|
|
|
|
boolean has(USVString property);
|
|
|
|
|
readonly attribute unsigned long size;
|
|
|
|
|
};
|
2025-08-11 10:27:07 -03:00
|
|
|
|
|
|
|
|
// https://drafts.css-houdini.org/css-typed-om-1/#computed-stylepropertymapreadonly-objects
|
|
|
|
|
partial interface Element {
|
|
|
|
|
[SameObject] StylePropertyMapReadOnly computedStyleMap();
|
|
|
|
|
};
|