OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 #scrollable { |
| 4 width: 100px; |
| 5 height: 50px; |
| 6 overflow-x: scroll; |
| 7 } |
| 8 |
| 9 #scrollable::-webkit-scrollbar { |
| 10 background-color: blue; |
| 11 height: 50px; |
| 12 } |
| 13 |
| 14 #scrollable::-webkit-scrollbar:corner-present { |
| 15 background-color: blue; |
| 16 } |
| 17 |
| 18 #filler { |
| 19 width: 200px; |
| 20 } |
| 21 </style> |
| 22 <script> |
| 23 if (window.testRunner) { |
| 24 testRunner.dumpAsText(); |
| 25 testRunner.waitUntilDone(); |
| 26 } |
| 27 |
| 28 function removeScrollbars() { |
| 29 requestAnimationFrame(function(){ |
| 30 scrollable.style.overflow = 'visible'; |
| 31 if (window.eventSender) |
| 32 eventSender.mouseUp(); |
| 33 if (window.testRunner) |
| 34 testRunner.notifyDone(); |
| 35 }); |
| 36 } |
| 37 </script> |
| 38 <p>Click the blue rectangle below - PASS if no crash.</p> |
| 39 <div id="scrollable" onmousedown="removeScrollbars();"> |
| 40 <div id="filler"> </div> |
| 41 </div> |
| 42 <script> |
| 43 if (window.eventSender) { |
| 44 eventSender.mouseMoveTo(scrollable.offsetLeft + 1, scrollable.offsetTop + 1)
; |
| 45 eventSender.mouseDown(); |
| 46 } |
| 47 </script> |
OLD | NEW |