Index: third_party/WebKit/LayoutTests/fast/multicol/dynamic/remove-content-from-scrollable.html |
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/dynamic/remove-content-from-scrollable.html b/third_party/WebKit/LayoutTests/fast/multicol/dynamic/remove-content-from-scrollable.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..15baeb91ed75d2908669b186e1e81e683416da12 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/multicol/dynamic/remove-content-from-scrollable.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/check-layout.js"></script> |
+<p>Test that overflow is recalculated when multicol contents changes.</p> |
+<p>There should be no scrollbars on this page.</p> |
+<div id="multicol" style="-webkit-columns:2; column-fill:auto; overflow:auto; width:100px; height:100px;" data-expected-scroll-width="100"> |
+ <div id="filler" style="height:300px;"></div> |
+ |
+ <!-- Need something more in here, or the column set would get nuked along with #filler when |
+ it's removed: --> |
+ <div></div> |
+</div> |
+<script> |
+ document.body.offsetTop; |
+ document.getElementById("filler").style.display = "none"; |
+ checkLayout("#multicol"); |
+</script> |