11 transform: translateZ(
0px);
23 transform: translateX(
110px);
27 background-color: red;
34 background-color: green;
52 if (window
.testRunner
) {
53 testRunner
.dumpAsTextWithPixelResults();
54 window
.addEventListener('load', function() {
55 document
.getElementById("layertree").innerText
= window
.internals
.layerTreeAsText(document
);
62 <!-- Tests that CSS transforms and clipping work properly together. -->
63 <!-- This reproduces an error reported in https://bugs.webkit.org/show_bug.cgi?id=76486
64 where the clipRect was not accounting for transforms. As a result, in the overlapMap,
65 the intersection of clipRect and layer bounds becomes empty, and layers on top do not
66 get properly composited. If this happens, the red "under composited" layer will be
67 exposed, because the "over" div does not become a composited layer. -->
68 <div class=
"container clips">
69 <div class=
"under composited"></div>
70 <div class=
"over"></div>
73 <pre id=
"layertree"></pre>