Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / layers / nested-layers-3.html
blob73a2da3bc0d231b1f5d3d9fe87591cdb24d80511
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/run-after-layout-and-paint.js"></script>
5 <script>
6 function test()
8 if (window.testRunner) {
9 testRunner.waitUntilDone();
10 testRunner.dumpAsText();
12 runAfterLayoutAndPaint(finish);
15 function finish()
17 var innerLayer = document.getElementById('innerLayer');
18 innerLayer.style.left = '19px';
19 innerLayer.style.top = '23px';
20 foo.scrollTop = 50;
21 if (window.testRunner)
22 testRunner.notifyDone();
24 </script>
25 <style>
26 /* nodes that have layers and are containers for their children */
27 .a { outline: solid blue 1px }
29 /* nodes that have layers but are not containers for their children */
30 .b { outline: solid red 1px }
32 /* nodes that do not have layers */
33 .c { outline: solid green 1px }
34 </style>
35 </head>
36 <body onload="test()">
37 Tests moving layers inside with fixed position nodes.
38 The test passes if it completes without failing any assertions in Debug mode.
39 <div>
40 <div style="position:fixed; top:30px" class="a">
41 <div style="position:absolute; left:7px; top:3px" class="a">
42 <div style="opacity: 0.8; left: 9px; width:50px; height:50px" class="b">
43 <div style="width:34px; height:43px" class="c"></div>
44 </div>
45 <div style="position:relative; left: 75px; width:50px; height:50px" class="a" id="innerLayer">
46 <div style="width:45px; height:45px" class="c"></div>
47 </div>
48 </div>
49 <div style="opacity: 0.8; width: 25px; height: 37px" id="foo" class="b"></div>
50 <div style="position:absolute; left:7px; top:50px; width:40px; height:40px" class="a">
51 </div>
52 </div>
53 </div>
54 </body>
55 </html