| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <script src="../../resources/ahem.js"></script> |
| 2 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/text-based-repaint.js"></script> |
| 3 <script> | 4 <script> |
| 4 function repaintTest() | 5 function repaintTest() |
| 5 { | 6 { |
| 6 document.getElementById('div1').style.width = '300px'; | 7 document.getElementById('div1').style.width = '300px'; |
| 7 document.getElementById('div2').style.width = '300px'; | 8 document.getElementById('div2').style.width = '300px'; |
| 8 } | 9 } |
| 9 window.onload = runRepaintAndPixelTest; | 10 window.onload = runRepaintAndPixelTest; |
| 10 </script> | 11 </script> |
| 11 <style> | 12 <style> |
| 12 body { | 13 body { |
| 13 margin: 0; | 14 margin: 0; |
| 14 } | 15 } |
| 15 .container { | 16 .container { |
| 16 font: 20px Ahem; | 17 font: 20px Ahem; |
| 17 width: 200px; | 18 width: 200px; |
| 18 position: absolute; | 19 position: absolute; |
| 19 } | 20 } |
| 20 </style> | 21 </style> |
| 21 <div class="container" id="div1"> | 22 <div class="container" id="div1"> |
| 22 A A A A A AA AA AA AA AAA AAA AAA AAAA AAAA AAAAA AAAAA AAAAAA AAAAAAA AAAAAA AA
AAA AAAAA AAAA AAAA AAA AAA AAA AA AA AA AA A A A A A | 23 A A A A A AA AA AA AA AAA AAA AAA AAAA AAAA AAAAA AAAAA AAAAAA AAAAAAA AAAAAA AA
AAA AAAAA AAAA AAAA AAA AAA AAA AA AA AA AA A A A A A |
| 23 </div> | 24 </div> |
| 24 <div class="container" id="div2" style="top: 300px"> | 25 <div class="container" id="div2" style="top: 300px"> |
| 25 A A A A A | 26 A A A A A |
| 26 </div> | 27 </div> |
| OLD | NEW |