OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script> | 2 <script> |
3 if (window.internals) | |
4 internals.settings.setRegionBasedColumnsEnabled(true); | |
5 if (window.testRunner) | 3 if (window.testRunner) |
6 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
7 onload = function() { | 5 onload = function() { |
8 document.getElementById('mc').offsetTop; // trigger layout | 6 document.getElementById('mc').offsetTop; // trigger layout |
9 document.getElementById('mc').style.webkitColumns = 'auto'; | 7 document.getElementById('mc').style.webkitColumns = 'auto'; |
10 document.getElementById('mc').style.columns = 'auto'; | 8 document.getElementById('mc').style.columns = 'auto'; |
11 document.getElementById('inline').style.color = 'green'; | 9 document.getElementById('inline').style.color = 'green'; |
12 } | 10 } |
13 </script> | 11 </script> |
14 <p>This test should not crash.</p> | 12 <p>This test should not crash.</p> |
15 <div id="mc" style="-webkit-columns:3; columns:3;"> | 13 <div id="mc" style="-webkit-columns:3; columns:3;"> |
16 <span id="inline">PASS</span> | 14 <span id="inline">PASS</span> |
17 </div> | 15 </div> |
OLD | NEW |