8 background-color: yellow;
12 background-color: blue;
19 background-color: green;
22 transform:translateZ(
0);
26 transform:translateZ(
0);
33 if (window
.testRunner
)
34 testRunner
.dumpAsText();
38 window
.internals
.forceCompositingUpdate(document
);
39 document
.getElementById('host').style
.left
= '100px';
40 document
.getElementById('console').textContent
= window
.internals
.layerTreeAsText(document
);
44 <body onload='doTest()'
>
45 <div id='background'
></div>
46 <div id='squashed'
></div>
49 <p style='position: relative; top:
200px;' style='display:none'
>
50 This tests that squashed layers' offset from renderer is updated properly. If not properly updated,
51 the two divs will appear to be aligned vertically in the pixel results, while really the blue div
52 ('squashed') should be offset
100px left of the green ('host').
54 <pre id='console' style='position: relative; top:
200px;'
></pre>