2 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
5 testRunner
.dumpAsText();
7 // Expose left part of the inner horizontal scrollbar first.
8 document
.getElementById('outer').scrollTop
= 250;
9 runAfterLayoutAndPaint(function() {
10 // Expose the forward track and forward button of the inner horizontal scrollbar.
11 document
.getElementById('outer').scrollLeft
= 250;
15 Tests invalidation and painting of scrollbar parts of a scroll area contained by another scroll area, when scrolling of the outer scroll area exposes a new port of the inner scrollbar. Passes if no assertion failure.
16 <div id=
"outer" style=
"position: absolute; top: 100px; left: 50px; width: 200px; height: 200px; overflow: scroll">
17 <div id=
"inner" style=
"width: 400px; height: 400px; overflow: scroll">
18 <div style=
"height: 500px; width: 100%; border: 1px solid black">PASS
</div>