Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / layer-visibility.html
1 <html>
2 <head>
3 <script>
4     function test()
5     {
6         document.body.offsetTop;
7         var target = document.getElementById("target");
8         target.style.visibility = "visible";
9         document.body.offsetTop;
10         
11         if (window.testRunner) {
12             testRunner.display();
13             finish();
14         } else
15             setTimeout(finish, 0);
16     }
17
18     function finish()
19     {
20         var target = document.getElementById("target");
21         target.style.left = "0";
22         target.style.backgroundColor = "green";
23     }
24 </script>
25 </head>
26 <body onload="test()">
27     <div id="target" style="position: absolute; top: 0; left: 100px; width: 100px; height: 100px; background-color: red; visibility: hidden;"></div>
28 </body>
29 </html>