Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / geometry / bounds-ignores-hidden-composited-descendant.html
blob364a70c947b6368d0eba9cf9c326fc6a1bd3f446
1 <style>
2 .composited {
3 transform: translateZ(0);
6 img {
7 background-color: black;
8 width: 50px;
9 height: 50px;
12 .box {
13 width: 100px;
14 height: 100px;
15 background-color: blue;
18 .inner {
19 position: relative;
20 visibility: visible;
23 #layers {
24 opacity: 0; /* hide from pixel result */
26 </style>
27 <script>
28 if (window.testRunner)
29 testRunner.dumpAsText();
31 function dumpLayers()
33 if (window.testRunner) {
34 document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
37 window.addEventListener('load', dumpLayers, false);
38 </script>
39 <body>
40 <div style="position: absolute; left: 0px; top: 0px; z-index: 1; " class="composited">
41 <img style="position: absolute; left: 10px; top: 10px; z-index: 0;">
42 <div style="position: absolute; left: 500px; top: 100px; z-index: 1; visibility: hidden;">
43 stuff
44 <div class="inner box"></div>
45 </div>
46 </div>
48 <div style="position: absolute; left: 0px; top: 250px; z-index: 1; " class="composited">
49 <img style="position: absolute; left: 10px; top: 10px; z-index: 0;">
50 <div style="position: absolute; left: 500px; top: 100px; z-index: 1; visibility: hidden;">
51 stuff
52 <!-- Ideally this layer wouldn't affect the bounds of its composited ancestor. -->
53 <div class="composited inner box"></div>
54 </div>
55 </div>
57 <pre id="layers">Layer tree goes here in DRT</pre>
58 </body>