1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

LibWeb/HTML: Port Window.scroll{X,Y} / Window.page{X,Y}Offset to IDL

This commit is contained in:
Linus Groh 2023-03-06 19:51:44 +00:00
parent 25f53a577d
commit 40b4ee88de
4 changed files with 33 additions and 44 deletions

View file

@ -52,6 +52,12 @@ interface Window : EventTarget {
[Replaceable] readonly attribute long innerWidth;
[Replaceable] readonly attribute long innerHeight;
// viewport scrolling
[Replaceable] readonly attribute double scrollX;
[Replaceable, ImplementedAs=scroll_x] readonly attribute double pageXOffset;
[Replaceable] readonly attribute double scrollY;
[Replaceable, ImplementedAs=scroll_y] readonly attribute double pageYOffset;
// FIXME: Everything from here on should be shared through WindowOrWorkerGlobalScope
// https://w3c.github.io/hr-time/#the-performance-attribute
[Replaceable] readonly attribute Performance performance;