| <!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; orphans:1; widows:1;"> |
| <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> |