OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
| 4 if (window.internals) |
| 5 internals.settings.setRegionBasedColumnsEnabled(true); |
4 if (window.testRunner) | 6 if (window.testRunner) |
5 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
6 | 8 |
7 function runTest() { | 9 function runTest() { |
8 var container = document.createElement('div'); | 10 var container = document.createElement('div'); |
9 container.style['-webkit-column-count'] = 1; | 11 container.style['-webkit-column-count'] = 1; |
10 document.body.appendChild(container); | 12 document.body.appendChild(container); |
11 var test1 = document.createElement('div'); | 13 var test1 = document.createElement('div'); |
12 test1.style['-webkit-column-span'] = 'all'; | 14 test1.style['-webkit-column-span'] = 'all'; |
13 container.appendChild(test1); | 15 container.appendChild(test1); |
14 var test2 = document.createElement('span'); | 16 var test2 = document.createElement('span'); |
15 container.appendChild(test2); | 17 container.appendChild(test2); |
16 test2.appendChild(document.createElement('div')); | 18 test2.appendChild(document.createElement('div')); |
17 var test3 = document.createElement('div'); | 19 var test3 = document.createElement('div'); |
18 test3.style.display = 'table-column'; | 20 test3.style.display = 'table-column'; |
19 container.appendChild(test3); | 21 container.appendChild(test3); |
20 container.appendChild(document.createElement('div')); | 22 container.appendChild(document.createElement('div')); |
21 } | 23 } |
22 </script> | 24 </script> |
23 </head> | 25 </head> |
24 <body onload="runTest()"> | 26 <body onload="runTest()"> |
25 Test passes if it does not crash. | 27 Test passes if it does not crash. |
26 </body> | 28 </body> |
27 </html> | 29 </html> |
OLD | NEW |