OLD | NEW |
1 <!-- Based on fast/repaint/resize-child-within-overflow.html --> | 1 <!-- Based on fast/repaint/resize-child-within-overflow.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <script src="resources/paint-invalidation-test.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
4 <script> | 4 <script> |
5 window.expectedPaintInvalidationObjects = [ | |
6 "LayoutBlockFlow (positioned) DIV class='container'", | |
7 ]; | |
8 function paintInvalidationTest() | 5 function paintInvalidationTest() |
9 { | 6 { |
10 document.getElementById('child').style.width = '600px'; | 7 document.getElementById('child').style.width = '600px'; |
11 } | 8 } |
12 window.onload = runPaintInvalidationTest; | 9 window.onload = runPaintInvalidationTest; |
13 </script> | 10 </script> |
14 <style> | 11 <style> |
15 body { | 12 body { |
16 margin: 0; | 13 margin: 0; |
17 } | 14 } |
18 .container { | 15 .container { |
19 position: absolute; | 16 position: absolute; |
20 height: 1000px; | 17 height: 1000px; |
21 background-color: blue; | 18 background-color: blue; |
22 } | 19 } |
23 #child { | 20 #child { |
24 width: 400px; | 21 width: 400px; |
25 } | 22 } |
26 .overflow { | 23 .overflow { |
27 width: 800px; | 24 width: 800px; |
28 height: 50px; | 25 height: 50px; |
29 } | 26 } |
30 </style> | 27 </style> |
31 <div class="container"> | 28 <div class="container"> |
32 <div id="child"> | 29 <div id="child"> |
33 <div class="overflow"></div> | 30 <div class="overflow"></div> |
34 </div> | 31 </div> |
35 </div> | 32 </div> |
OLD | NEW |