1 <script src=
"../resources/run-after-layout-and-paint.js"></script>
6 background-color: #aaa;
13 background-color: red;
18 <div class=
"child"></div>
19 <div class=
"child"></div>
20 <div id=
"target"class=
"child"></div>
23 if (window
.testRunner
)
24 testRunner
.waitUntilDone();
26 // The target element should be displayed as red, not gray.
27 runAfterLayoutAndPaint(function() {
28 target
.scrollIntoView(true);
29 runAfterLayoutAndPaint(function() {
30 testRunner
.notifyDone();