| 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 function repaintTest() | 4 function repaintTest() |
| 5 { | 5 { |
| 6 document.getElementById('child').style.width = '600px'; | 6 document.getElementById('child').style.width = '600px'; |
| 7 } | 7 } |
| 8 window.onload = runRepaintTest; | 8 window.onload = runRepaintAndPixelTest; |
| 9 </script> | 9 </script> |
| 10 <style> | 10 <style> |
| 11 body { | 11 body { |
| 12 margin: 0; | 12 margin: 0; |
| 13 } | 13 } |
| 14 .container { | 14 .container { |
| 15 position: absolute; | 15 position: absolute; |
| 16 height: 1000px; | 16 height: 1000px; |
| 17 background-color: blue; | 17 background-color: blue; |
| 18 } | 18 } |
| 19 #child { | 19 #child { |
| 20 width: 400px; | 20 width: 400px; |
| 21 } | 21 } |
| 22 .overflow { | 22 .overflow { |
| 23 width: 800px; | 23 width: 800px; |
| 24 height: 50px; | 24 height: 50px; |
| 25 } | 25 } |
| 26 </style> | 26 </style> |
| 27 <div class="container"> | 27 <div class="container"> |
| 28 <div id="child"> | 28 <div id="child"> |
| 29 <div class="overflow"></div> | 29 <div class="overflow"></div> |
| 30 </div> | 30 </div> |
| 31 </div> | 31 </div> |
| OLD | NEW |