13 transform: translatez(0);
18 background-color: gray;
24 background-color: blue;
30 background-color: lime;
36 background-color: green;
42 background-color: yellow;
46 if (window.testRunner)
47 testRunner.dumpAsText();
50 internals.settings.setLayerSquashingEnabled(true);
53 if (!window.internals)
55 var layers = document.createElement('pre');
56 layers.innerHTML = window.internals.layerTreeAsText(document);
57 document.body.appendChild(layers);
66 If this test is working correctly, then the first two layers should not
67 squash together (as they would create a layer that's too sparse), but the
68 third and fourth layers should squash together.
70 <div class="composited"></div>
71 <div id="A" class="overlap1"></div>
72 <div id="B" class="overlap2"></div>
73 <div id="C" class="overlap3"></div>
74 <div id="D" class="overlap4"></div>