
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.
21 lines
486 B
Text
21 lines
486 B
Text
#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;
|
|
|
|
};
|