mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 23:29:52 +00:00
Currently the map doesn't return any values, so it's not very useful, but this does make a few tests pass just by existing. :^)
17 lines
681 B
Text
17 lines
681 B
Text
#import <CSS/CSSStyleValue.idl>
|
|
|
|
// https://drafts.css-houdini.org/css-typed-om-1/#stylepropertymapreadonly
|
|
// FIXME: [Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
|
[Exposed=(Window, Worker)]
|
|
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();
|
|
};
|