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