ladybird/Libraries/LibWeb/CSS/StylePropertyMapReadOnly.idl
Sam Atkins 888cb038e8 LibWeb/CSS: Expose a couple of types on PaintWorklet and LayoutWorklet
This has no actual effect, but it's nice to remove the FIXMEs.
2025-08-15 09:21:28 +02:00

16 lines
644 B
Text

#import <CSS/CSSStyleValue.idl>
// https://drafts.css-houdini.org/css-typed-om-1/#stylepropertymapreadonly
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
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;
};
// https://drafts.css-houdini.org/css-typed-om-1/#computed-stylepropertymapreadonly-objects
partial interface Element {
[SameObject] StylePropertyMapReadOnly computedStyleMap();
};