OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/js-test.js"></script> |
| 3 <style> |
| 4 #f { |
| 5 position: fixed; |
| 6 background-color: #def; |
| 7 width: 600px; |
| 8 height: 400px; |
| 9 right: -20px; |
| 10 bottom: -20px; |
| 11 } |
| 12 body { |
| 13 width: 1000px; |
| 14 height: 1000px; |
| 15 } |
| 16 </style> |
| 17 Tests that the scrollbar can be clicked even when it clips a position:fixed |
| 18 element, and that the scrollbars are excluded from the viewport for determining |
| 19 the element's position. |
| 20 <div id="f"></div> |
| 21 <script> |
| 22 |
| 23 eventSender.mouseMoveTo(790, 500); |
| 24 eventSender.mouseDown(); |
| 25 eventSender.mouseUp(); |
| 26 |
| 27 var rect = document.querySelector("#f").getBoundingClientRect(); |
| 28 |
| 29 shouldBeTrue(String(scrollY > 0)); |
| 30 shouldBe(rect.left + "," + rect.top, "205,205"); |
| 31 |
| 32 </script> |
OLD | NEW |