mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:58:14 +00:00
LibWeb/HTML: Port Window.screen{X,Y} / Window.screen{Left,Top} to IDL
This commit is contained in:
parent
3d075e55f5
commit
80acf03278
3 changed files with 29 additions and 57 deletions
|
@ -64,6 +64,12 @@ interface Window : EventTarget {
|
|||
undefined scrollBy(optional ScrollToOptions options = {});
|
||||
undefined scrollBy(unrestricted double x, unrestricted double y);
|
||||
|
||||
// client
|
||||
[Replaceable] readonly attribute long screenX;
|
||||
[Replaceable, ImplementedAs=screen_x] readonly attribute long screenLeft;
|
||||
[Replaceable] readonly attribute long screenY;
|
||||
[Replaceable, ImplementedAs=screen_y] readonly attribute long screenTop;
|
||||
|
||||
// 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