OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 #test0 { -webkit-column-width: 1px; } | 5 #test0 { -webkit-column-width: 1px; } |
6 #test2::after { display: compact; content: ''; } | 6 #test2::after { display: compact; content: ''; } |
7 #test3 { content: counter(c); -webkit-column-span: all; } | 7 #test3 { content: counter(c); -webkit-column-span: all; } |
8 </style> | 8 </style> |
9 <script> | 9 <script> |
| 10 if (window.internals) |
| 11 internals.settings.setRegionBasedColumnsEnabled(true); |
10 if (window.testRunner) | 12 if (window.testRunner) |
11 testRunner.dumpAsText(); | 13 testRunner.dumpAsText(); |
12 | 14 |
13 onload = function() { | 15 onload = function() { |
14 test0 = document.createElement('div'); | 16 test0 = document.createElement('div'); |
15 test0.setAttribute('id', 'test0'); | 17 test0.setAttribute('id', 'test0'); |
16 document.body.appendChild(test0); | 18 document.body.appendChild(test0); |
17 test1 = document.createElement('div'); | 19 test1 = document.createElement('div'); |
18 test0.appendChild(test1); | 20 test0.appendChild(test1); |
19 test2 = document.createElement('div'); | 21 test2 = document.createElement('div'); |
20 test2.setAttribute('id', 'test2'); | 22 test2.setAttribute('id', 'test2'); |
21 test1.appendChild(test2); | 23 test1.appendChild(test2); |
22 test3 = document.createElement('div'); | 24 test3 = document.createElement('div'); |
23 test3.setAttribute('id', 'test3'); | 25 test3.setAttribute('id', 'test3'); |
24 test2.appendChild(test3); | 26 test2.appendChild(test3); |
25 test2.appendChild(document.createTextNode('A')); | 27 test2.appendChild(document.createTextNode('A')); |
26 document.designMode = 'on'; | 28 document.designMode = 'on'; |
27 document.execCommand('selectall'); | 29 document.execCommand('selectall'); |
28 document.body.offsetTop; | 30 document.body.offsetTop; |
29 document.body.innerHTML = "WebKit Bug - Crash in multi-column layout.<br />P
ASS. WebKit didn't crash."; | 31 document.body.innerHTML = "WebKit Bug - Crash in multi-column layout.<br />P
ASS. WebKit didn't crash."; |
30 } | 32 } |
31 </script> | 33 </script> |
32 </head> | 34 </head> |
33 <body> | 35 <body> |
34 </body> | 36 </body> |
35 </html> | 37 </html> |
OLD | NEW |