2 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
11 background-color: yellow;
14 background-color: blue;
22 Tests invalidation and painting of a box changing background while composited scrolled.
25 <div id=
"box-unchanged"></div>
26 <div style=
"height: 4000px"></div>
30 if (window
.testRunner
) {
31 testRunner
.dumpAsTextWithPixelResults();
32 testRunner
.waitUntilDone();
35 runAfterLayoutAndPaint(function() {
36 var container
= document
.querySelector('#container');
37 var box
= document
.querySelector("#box");
38 container
.scrollTop
= 180;
39 box
.style
.backgroundColor
= "green";
40 runAfterLayoutAndPaint(function() {
41 container
.scrollTop
= 0;
42 if (window
.testRunner
)
43 testRunner
.notifyDone();