mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 03:39:04 +00:00
LibWeb/HTML: Port Window.inner{Width,Height} to IDL
This commit is contained in:
parent
0c691087ca
commit
25f53a577d
Notes:
sideshowbarker
2024-07-17 05:23:40 +09:00
Author: https://github.com/linusg
Commit: 25f53a577d
Pull-request: https://github.com/SerenityOS/serenity/pull/17752
Reviewed-by: https://github.com/awesomekling
3 changed files with 27 additions and 40 deletions
|
@ -48,6 +48,10 @@ interface Window : EventTarget {
|
|||
[NewObject] MediaQueryList matchMedia(CSSOMString query);
|
||||
[SameObject, Replaceable] readonly attribute Screen screen;
|
||||
|
||||
// viewport
|
||||
[Replaceable] readonly attribute long innerWidth;
|
||||
[Replaceable] readonly attribute long innerHeight;
|
||||
|
||||
// FIXME: Everything from here on should be shared through WindowOrWorkerGlobalScope
|
||||
// https://w3c.github.io/hr-time/#the-performance-attribute
|
||||
[Replaceable] readonly attribute Performance performance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue