2 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
10 background-color: yellow;
14 <div style=
"height: 900px"></div>
17 if (window
.testRunner
) {
18 testRunner
.dumpAsTextWithPixelResults();
19 testRunner
.waitUntilDone();
22 runAfterLayoutAndPaint(function() {
23 var box
= document
.querySelector("#box");
25 box
.style
.backgroundColor
= "green";
26 runAfterLayoutAndPaint(function() {
28 if (window
.testRunner
)
29 testRunner
.notifyDone();