OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
3 <script> | 3 <script> |
4 if (window.internals) { | 4 if (window.internals) { |
5 internals.settings.setOverlayScrollbarsEnabled(true); | 5 internals.settings.setOverlayScrollbarsEnabled(true); |
6 internals.settings.setMockScrollbarsEnabled(true); | 6 internals.settings.setMockScrollbarsEnabled(true); |
7 } | 7 } |
8 function repaintTest() { | 8 function repaintTest() { |
9 document.getElementById('content').style.height = '100px'; | 9 document.getElementById('content').style.height = '100px'; |
10 } | 10 } |
11 onload = runRepaintAndPixelTest; | 11 onload = runRepaintAndPixelTest; |
12 </script> | 12 </script> |
13 Tests invalidation when an overlay scrollbar is destroyed. Passes if there is no
scrollbar. | 13 Tests invalidation when an overlay scrollbar is destroyed. Passes if there is no
scrollbar. |
14 <div style="position: absolute; top: 100px; left: 0; width: 200px; height: 200px
; overflow: auto"> | 14 <div style="position: absolute; top: 100px; left: 0; width: 200px; height: 200px
; overflow: auto"> |
15 <div id="content" style="width: 100px; height: 400px"></div> | 15 <div id="content" style="width: 100px; height: 400px"></div> |
16 </div> | 16 </div> |
17 | 17 |
OLD | NEW |