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