10 background-color: lightblue;
15 background-color: lightgreen;
20 transform: translateZ(0px);
26 <!-- This test checks that setting the opacity of the owner of a squashed layer only affects that layer, and not the squashed layers. -->
28 <!-- This div will be the "owner" of the squashing layer -->
29 <div id="target" class="composited box"></div>
30 <!-- These divs will be squashed into a layer containing them and the owner -->
31 <div class="squashed" style="top: 4px"></div>
32 <div class="squashed" style="top: 54px"></div>
33 <pre id="layers">Layer tree goes here in DRT</pre>
35 if (window.testRunner)
36 testRunner.dumpAsText();
38 if (window.testRunner) {
39 internals.settings.setLayerSquashingEnabled(true);
41 document.getElementById("target").classList.add("opaque");
43 var layersResult = document.getElementById('layers');
44 if (window.testRunner)
45 layersResult.innerText = window.internals.layerTreeAsText(document);