VisualViewport.idl 555 B

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