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