Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / squashing / no-squashing-into-another-clip-layer.html
blob2696f2027a764c2703c82e3d3a89d2d44f6b146f
1 <!DOCTYPE html>
2 <style>
3 .hoverable:hover {
4 transform: translateZ(0);
6 </style>
7 <script>
8 if (window.testRunner)
9 testRunner.dumpAsText();
11 function dumpLayers()
13 var layersResult = document.getElementById('layers');
14 if (window.testRunner)
15 layersResult.innerText = window.internals.layerTreeAsText(document);
17 window.addEventListener('load', dumpLayers, false)
18 </script>
19 <div style="transform: translateZ(0); overflow: hidden; height: 10px; background-color: lightblue">
20 <div id="inner" style="transform: translateZ(0); height: 10px; background-color: whitesmoke">
21 </div>
22 </div>
23 <!-- This div should not sqaush into the inner div, because it is inside an overflow:hidden div which therefore clips differently than this div's parent -->
24 <div class="hoverable" style="position:absolute; top: 0px; height:100px; width:100px; background-color: lightgreen">
25 <pre id="layers">Layer tree goes here in DRT</pre>