VisualViewport.idl 486 B

123456789101112131415161718192021
  1. #import <DOM/EventTarget.idl>
  2. [Exposed=Window]
  3. interface VisualViewport : EventTarget {
  4. readonly attribute double offsetLeft;
  5. readonly attribute double offsetTop;
  6. readonly attribute double pageLeft;
  7. readonly attribute double pageTop;
  8. readonly attribute double width;
  9. readonly attribute double height;
  10. readonly attribute double scale;
  11. attribute EventHandler onresize;
  12. attribute EventHandler onscroll;
  13. attribute EventHandler onscrollend;
  14. };