Index: LayoutTests/fast/repaint/vertical-scrollbar-shrink-container-width.html |
diff --git a/LayoutTests/fast/repaint/vertical-scrollbar-shrink-container-width.html b/LayoutTests/fast/repaint/vertical-scrollbar-shrink-container-width.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..37e2c8e98e8900667d546685762604c5e777334c |
--- /dev/null |
+++ b/LayoutTests/fast/repaint/vertical-scrollbar-shrink-container-width.html |
@@ -0,0 +1,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/display-then-call.js"></script> |
+<script> |
+ function changeSize() { |
+ document.getElementById('target').style.width = '300px'; |
+ } |
+ displayThenCall(changeSize); |
+</script> |