summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/overflow/scrollbar-position-update.html
blob: 3ee231cc84679823b3577c33b36e8c8227a7b77c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<p>
    Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=16426">http://bugs.webkit.org/show_bug.cgi?id=16426</a>
    Divs with overflow:auto: scrollbars not correctly updated when contents change</i>.
</p>
<p>
    The thumb should be in the middle of the scroll bar.
</p>
<div id="outer" style="height: 200px; width: 200px; overflow-y: scroll;">
    <div id="inner" style="height: 400px;">
    </div>
</div>
<script>
    document.getElementById("outer").scrollTop = 200;
    document.getElementById("inner").style.height = "600px";
</script>