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:
parent
25f53a577d
commit
40b4ee88de
4 changed files with 33 additions and 44 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue