blob: 9b287d7e0ea3b8fff3cd9a9a9bc3cf1fd2b79cd5 [file] [log] [blame]
<!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>