5 <script src=
"../resources/run-after-layout-and-paint.js"></script>
25 background-color: green;
30 if (window
.testRunner
) {
31 testRunner
.waitUntilDone();
32 testRunner
.dumpAsText();
34 if (window
.internals
) {
35 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(true);
40 window
.setTimeout(function() {
41 window
.scrollTo(0, 200);
43 runAfterLayoutAndPaint(function() {
44 if (window
.internals
) {
45 document
.getElementById('results').innerText
= internals
.layerTreeAsText(document
);
46 if (window
.testRunner
) {
47 testRunner
.notifyDone();
54 window
.addEventListener('load', doScroll
, false);
58 <pre id=
"results"></pre>
60 <div class=
"wrapper box">