mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:47:35 +00:00
LibWeb: Implement basic version of CSSOM View's VisualViewport
We got some errors while loading https://twinings.co.uk/ about this interface missing, and it looked fairly simple so I sketched it out. Note that I did leave some FIXMEs where it's not clear exactly which metrics we should be returning.
This commit is contained in:
parent
2a914a7a59
commit
9f6ceff7cf
13 changed files with 257 additions and 2 deletions
21
Userland/Libraries/LibWeb/CSS/VisualViewport.idl
Normal file
21
Userland/Libraries/LibWeb/CSS/VisualViewport.idl
Normal file
|
@ -0,0 +1,21 @@
|
|||
#import <DOM/EventTarget.idl>
|
||||
|
||||
[Exposed=Window]
|
||||
interface VisualViewport : EventTarget {
|
||||
|
||||
readonly attribute double offsetLeft;
|
||||
readonly attribute double offsetTop;
|
||||
|
||||
readonly attribute double pageLeft;
|
||||
readonly attribute double pageTop;
|
||||
|
||||
readonly attribute double width;
|
||||
readonly attribute double height;
|
||||
|
||||
readonly attribute double scale;
|
||||
|
||||
attribute EventHandler onresize;
|
||||
attribute EventHandler onscroll;
|
||||
attribute EventHandler onscrollend;
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue