| OLD | NEW |
| 1 <style> | 1 <style> |
| 2 html, body { margin:0; overflow: hidden; } | 2 html, body { margin:0; overflow: hidden; } |
| 3 </style> | 3 </style> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 | 5 |
| 6 <div> | 6 <div> |
| 7 This tests that a usually overflow: hidden viewport should be scrollable when | 7 This tests that a usually overflow: hidden viewport should be scrollable when |
| 8 scaled. Otherwise, you can't get to content you would have been able to get to | 8 scaled. Otherwise, you can't get to content you would have been able to get to |
| 9 had you not been zoomed it. | 9 had you not been zoomed it. |
| 10 </div> | 10 </div> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 window.internals.setPageScaleFactor(2); | 28 window.internals.setPageScaleFactor(2); |
| 29 | 29 |
| 30 // Note that with ScrollTopLeftInterop enabled, document.scrollingElemen
t is | 30 // Note that with ScrollTopLeftInterop enabled, document.scrollingElemen
t is |
| 31 // null because document.body is potentially scrollable (with overflow:h
idden | 31 // null because document.body is potentially scrollable (with overflow:h
idden |
| 32 // the box can still be scrolled programmatically). | 32 // the box can still be scrolled programmatically). |
| 33 shouldBe("internals.visualViewportScrollY()", "0"); | 33 shouldBe("internals.visualViewportScrollY()", "0"); |
| 34 | 34 |
| 35 if (window.eventSender) { | 35 if (window.eventSender) { |
| 36 eventSender.mouseMoveTo(100, 100); | 36 eventSender.mouseMoveTo(100, 100); |
| 37 eventSender.mouseScrollBy(0, -5); | 37 eventSender.mouseScrollBy(0, -10); |
| 38 } | 38 } |
| 39 | 39 |
| 40 shouldBecomeEqual("internals.visualViewportScrollY()", "200", finishJSTe
st); | 40 shouldBecomeEqual("internals.visualViewportScrollY()", "200", finishJSTe
st); |
| 41 })(); | 41 })(); |
| 42 </script> | 42 </script> |
| OLD | NEW |