OLD | NEW |
| 1 <!-- Based on fast/repaint/destroy-scrollbar.html --> |
1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
2 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
3 <script> | 4 <script> |
4 function repaintTest() { | 5 window.expectedPaintInvalidationObjects = [ |
| 6 "VerticalScrollbar", |
| 7 "LayoutBlockFlow (positioned) DIV", |
| 8 ]; |
| 9 function paintInvalidationTest() { |
5 document.getElementById('content').style.height = '100px'; | 10 document.getElementById('content').style.height = '100px'; |
6 } | 11 } |
7 onload = runRepaintTest; | 12 onload = runPaintInvalidationTest; |
8 </script> | 13 </script> |
9 Tests invalidation when a scrollbar is destroyed. Passes if there is no scrollba
r. | 14 Tests invalidation when a scrollbar is destroyed. Passes if there is no scrollba
r. |
10 <div style="position: absolute; top: 100px; left: 0; width: 200px; height: 200px
; overflow: auto"> | 15 <div style="position: absolute; top: 100px; left: 0; width: 200px; height: 200px
; overflow: auto"> |
11 <div id="content" style="width: 100px; height: 400px"></div> | 16 <div id="content" style="width: 100px; height: 400px"></div> |
12 </div> | 17 </div> |
13 | |
OLD | NEW |