summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/horizontal-scrollbar-shrink-container-height.html
blob: 863055f2d84693bde93f3e91f3c6170a803b10c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<p>Test decreasing the height of the containing block of a scrollable container with percent height.</p>
<p>One horizontal scrollbar should be seen below.</p>
<div id="target" style="height:450px;">
    <div style="height:50%; overflow-x:scroll;"></div>
</div>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
    function changeSize() {
        document.getElementById('target').style.height = '250px';
    }
    runAfterLayoutAndPaint(changeSize, true);
</script>