Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / layers / nested-layers-1.html
blobbe5cf807499be579358def7bf21fb5cdc55323ec
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 if (window.testRunner)
21 testRunner.notifyDone();
23 </script>
24 <style>
25 /* nodes that have layers and are containers for their children */
26 .a { outline: solid blue 1px }
28 /* nodes that have layers but are not containers for their children */
29 .b { outline: solid red 1px }
31 /* nodes that do not have layers */
32 .c { outline: solid green 1px }
33 </style>
34 </head>
35 <body onload="test()">
36 Test where every node has a layer and the containing block structure matches the layer structure exactly.
37 <br>
38 The test passes if it completes without failing any assertions in Debug mode.
39 <div>
40 <div style="position:absolute" 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"></div>
43 <div style="position:relative; left: 75px; width:50px; height:50px" class="a" id="innerLayer"></div>
44 </div>
45 <div style="opacity: 0.8; width: 25px; height: 37px" class="b"></div>
46 <div style="position:absolute; left:7px; top:50px; width:40px; height:40px" class="a">
47 </div>
48 </div>
49 </div>
50 </body>
51 </html