mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
LibWeb/HTML: Port Window.getComputedStyle() to IDL
This commit is contained in:
parent
8454eb874f
commit
b59505aba5
3 changed files with 13 additions and 18 deletions
|
@ -44,6 +44,9 @@ interface Window : EventTarget {
|
|||
// https://dom.spec.whatwg.org/#interface-window-extensions
|
||||
[Replaceable] readonly attribute (Event or undefined) event; // legacy
|
||||
|
||||
// https://w3c.github.io/csswg-drafts/cssom/#extensions-to-the-window-interface
|
||||
[NewObject] CSSStyleDeclaration getComputedStyle(Element elt, optional CSSOMString? pseudoElt);
|
||||
|
||||
// https://w3c.github.io/csswg-drafts/cssom-view/#extensions-to-the-window-interface
|
||||
[NewObject] MediaQueryList matchMedia(CSSOMString query);
|
||||
[SameObject, Replaceable] readonly attribute Screen screen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue