| -webkit-transform: translateZ(0); |
| body.changed img.to-visible { |
| body.changed img.to-hidden { |
| opacity: 0; /* hide from pixel result */ |
| testRunner.dumpAsText(true); |
| testRunner.waitUntilDone(); |
| window.setTimeout(function() { |
| document.body.classList.add('changed'); |
| document.getElementById('layers').innerText = testRunner.layerTreeAsText(); |
| window.addEventListener('load', doTest, false); |
| <div style="position: absolute; left: 0px; top: 0px; z-index: 106; " class="composited"> |
| <img style="position: absolute; left: 10px; top: 10px; z-index: 0;"> |
| <img style="position: absolute; left: 500px; top: 200px; z-index: 0;" class="to-visible"> |
| <div style="position: absolute; left: 0px; top: 250px; z-index: 106; " class="composited"> |
| <img style="position: absolute; left: 10px; top: 10px; z-index: 0;"> |
| <img style="position: absolute; left: 500px; top: 200px; z-index: 0;" class="to-hidden"> |
| <pre id="layers">Layer tree goes here in DRT</pre> |