OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/text-based-repaint.js"></script> |
4 <script> | 4 <script> |
5 function test() | 5 function test() |
6 { | 6 { |
7 document.body.offsetTop; | 7 document.body.offsetTop; |
8 var target = document.getElementById("target"); | 8 var target = document.getElementById("target"); |
9 target.style.visibility = "visible"; | 9 target.style.visibility = "visible"; |
10 document.body.offsetTop; | 10 document.body.offsetTop; |
11 | 11 |
12 runRepaintTest(); | 12 runRepaintAndPixelTest(); |
13 } | 13 } |
14 | 14 |
15 function repaintTest() | 15 function repaintTest() |
16 { | 16 { |
17 var target = document.getElementById("target"); | 17 var target = document.getElementById("target"); |
18 target.style.left = "0"; | 18 target.style.left = "0"; |
19 target.style.backgroundColor = "green"; | 19 target.style.backgroundColor = "green"; |
20 } | 20 } |
21 </script> | 21 </script> |
22 </head> | 22 </head> |
23 <body onload="test()"> | 23 <body onload="test()"> |
24 <div id="target" style="position: absolute; top: 0; left: 100px; width: 100p
x; height: 100px; background-color: red; visibility: hidden;"></div> | 24 <div id="target" style="position: absolute; top: 0; left: 100px; width: 100p
x; height: 100px; background-color: red; visibility: hidden;"></div> |
25 </body> | 25 </body> |
26 </html> | 26 </html> |
OLD | NEW |