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