3 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
20 background-color: red;
24 transform:translateZ(
0);
25 background-color: green;
31 background-color: white;
42 if (window
.testRunner
) {
43 testRunner
.waitUntilDone();
44 testRunner
.dumpAsTextWithPixelResults();
47 // The far left coordinate of the document varies by window width.
48 var offset
= document
.body
.clientWidth
- document
.scrollingElement
.scrollWidth
+ 1;
50 window
.setTimeout(function() {
51 window
.scrollTo(offset
, 0);
52 if (window
.testRunner
) {
53 runAfterLayoutAndPaint(function() {
55 document
.getElementById('layertree').innerText
= window
.internals
.layerTreeAsText(document
);
56 testRunner
.notifyDone();
61 window
.addEventListener('load', doTest
, false);
65 <div class=
"positioned indicator"></div>
66 <div class=
"positioned layer"></div>
68 <pre id=
"layertree"></pre>