2 <script src=
"../../resources/js-test.js"></script>
3 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
6 border:
1px solid black;
19 background-color: #ddf;
21 display: inline-block;
25 <a name=
"top"></a>text
<br>
26 <span class=
"spacer"></span>
29 var jsTestIsAsync
= true;
30 var scroller
= document
.querySelector("#scroller");
31 scroller
.scrollTop
= 400;
32 runAfterLayoutAndPaint(function() {
33 location
.hash
= "#top";
34 shouldBe("scroller.scrollTop", "20");