Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / layer-visibility.html
blob8561d1e0221df1ca62df15c17949bb225b1b6b4f
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()
8 document.body.offsetTop;
9 var target = document.getElementById("target");
10 target.style.visibility = "visible";
11 document.body.offsetTop;
13 runPaintInvalidationTest();
16 window.expectedPaintInvalidationObjects = [
17 "LayoutBlockFlow (positioned) DIV id='target'",
19 function paintInvalidationTest()
21 var target = document.getElementById("target");
22 target.style.left = "0";
23 target.style.backgroundColor = "green";
25 </script>
26 </head>
27 <body onload="test()">
28 <div id="target" style="position: absolute; top: 0; left: 100px; width: 100px; height: 100px; background-color: red; visibility: hidden;"></div>
29 </body>
30 </html>