1 <script src=
"../resources/run-after-layout-and-paint.js"></script>
5 -webkit-backface-visibility: hidden;
7 background-color: #aaa;
14 background-color: red;
19 <div class=
"child"></div>
20 <div class=
"child"></div>
21 <div id=
"target"class=
"child"></div>
24 if (window
.testRunner
)
25 testRunner
.waitUntilDone();
27 // The target element should be displayed as red, not gray.
28 runAfterLayoutAndPaint(function() {
29 target
.scrollIntoView(true);
30 runAfterLayoutAndPaint(function() {
31 testRunner
.notifyDone();