| -webkit-transform: translateZ(0px); |
| -webkit-transform: translateX(110px); |
| testRunner.dumpAsText(true); |
| window.addEventListener('load', function() { |
| document.getElementById("layertree").innerText = testRunner.layerTreeAsText(); |
| <!-- Tests that CSS transforms and clipping work properly together. --> |
| <!-- This reproduces an error reported in https://bugs.webkit.org/show_bug.cgi?id=76486 |
| where the clipRect was not accounting for transforms. As a result, in the overlapMap, |
| the intersection of clipRect and layer bounds becomes empty, and layers on top do not |
| get properly composited. If this happens, the red "under composited" layer will be |
| exposed, because the "over" div does not become a composited layer. --> |
| <div class="container clips"> |
| <div class="under composited"></div> |
| <pre id="layertree"></pre> |