Index: LayoutTests/fast/multicol/table-cell-content-change.html |
diff --git a/LayoutTests/fast/multicol/table-cell-content-change.html b/LayoutTests/fast/multicol/table-cell-content-change.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..283558cda10cd17b605a631764561a757ec48a58 |
--- /dev/null |
+++ b/LayoutTests/fast/multicol/table-cell-content-change.html |
@@ -0,0 +1,27 @@ |
+<!DOCTYPE html> |
+<html> |
+ <head> |
+ <script> |
+ function test() { |
+ document.body.offsetTop; // trigger layout |
+ document.getElementById('elm').style.display = 'block'; |
+ } |
+ </script> |
+ </head> |
+ <body onload="test()"> |
+ <h3>Changing the contents of a table cell, increasing column height</h3> |
+ |
+ <p>You should see the text "first column" once in the first column, and the text "second |
+ column" twice in the second column.</p> |
+ <div style="-webkit-columns:2; columns:2; x-webkit-column-rule:1px solid; xcolumn-rule:1px solid; orphans:1; widows:1; xbackground:yellow;"> <!-- FIXME: should ideally paint background and column rules here, to measure the column height, but the balancing machinery in the old multicol implementation doesn't do it properly. See crbug.com/352052 --> |
+ <div style="display:table-row;"> |
+ first column |
+ <div style="height:0.1em;"></div> |
+ </div> |
+ <div style="display:table-row;"> |
+ second column |
+ <div id="elm" style="display:none;">second column</div> |
+ </div> |
+ </div> |
+ </body> |
+</html> |