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('div1').style.width = '300px'; | 6 document.getElementById('div1').style.width = '300px'; |
7 document.getElementById('div2').style.width = '300px'; | 7 document.getElementById('div2').style.width = '300px'; |
8 } | 8 } |
9 window.onload = runRepaintAndPixelTest; | 9 window.onload = runRepaintAndPixelTest; |
10 </script> | 10 </script> |
11 <style> | 11 <style> |
12 body { | 12 body { |
13 margin: 0; | 13 margin: 0; |
14 } | 14 } |
15 .container { | 15 .container { |
16 font: 20px Ahem; | 16 font: 20px Ahem; |
17 width: 200px; | 17 width: 200px; |
18 position: absolute; | 18 position: absolute; |
19 } | 19 } |
20 </style> | 20 </style> |
21 <div class="container" id="div1"> | 21 <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 | 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 </div> | 23 </div> |
24 <div class="container" id="div2" style="top: 300px"> | 24 <div class="container" id="div2" style="top: 300px"> |
25 A A A A A | 25 A A A A A |
26 </div> | 26 </div> |
OLD | NEW |