1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:07:34 +00:00

LibWeb/HTML: Port Window.inner{Width,Height} to IDL

This commit is contained in:
Linus Groh 2023-03-06 19:51:33 +00:00
parent 0c691087ca
commit 25f53a577d
3 changed files with 27 additions and 40 deletions

View file

@ -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;