2 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
10 background-color: yellow;
13 Same as background-paint-scrolled.html but scrolls the changed box out of view then back in.
15 <div style=
"height: 2000px"></div>
18 if (window
.testRunner
) {
19 testRunner
.dumpAsTextWithPixelResults();
20 testRunner
.waitUntilDone();
23 runAfterLayoutAndPaint(function() {
24 var box
= document
.querySelector("#box");
26 box
.style
.backgroundColor
= "green";
27 runAfterLayoutAndPaint(function() {
29 if (window
.testRunner
)
30 testRunner
.notifyDone();