OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
| 4 <script> |
| 5 if (window.internals) |
| 6 internals.settings.setRegionBasedColumnsEnabled(true); |
| 7 </script> |
4 <style> | 8 <style> |
5 #test1 { | 9 #test1 { |
6 text-indent: -1em; | 10 text-indent: -1em; |
7 content: counter(c); | 11 content: counter(c); |
8 -webkit-column-count: 1; | 12 -webkit-column-count: 1; |
9 } | 13 } |
10 #test3 { | 14 #test3 { |
11 -webkit-column-span: all; | 15 -webkit-column-span: all; |
12 } | 16 } |
13 </style> | 17 </style> |
14 <script> | 18 <script> |
15 if (window.testRunner) | 19 if (window.testRunner) |
16 testRunner.dumpAsText(); | 20 testRunner.dumpAsText(); |
17 | 21 |
18 function crash() { | 22 function crash() { |
19 test1 = document.createElement('div'); | 23 test1 = document.createElement('div'); |
20 test1.setAttribute('id', 'test1'); | 24 test1.setAttribute('id', 'test1'); |
21 document.body.appendChild(test1); | 25 document.body.appendChild(test1); |
22 test2 = document.createElement('div'); | 26 test2 = document.createElement('div'); |
23 test1.appendChild(test2); | 27 test1.appendChild(test2); |
24 test3 = document.createElement('div'); | 28 test3 = document.createElement('div'); |
25 test3.setAttribute('id', 'test3'); | 29 test3.setAttribute('id', 'test3'); |
26 test2.appendChild(test3); | 30 test2.appendChild(test3); |
27 test2.appendChild(document.createTextNode('A')); | 31 test2.appendChild(document.createTextNode('A')); |
28 test2.style.display = '-webkit-box'; | 32 test2.style.display = '-webkit-box'; |
29 document.body.offsetTop; | 33 document.body.offsetTop; |
30 test3.style.display = 'list-item'; | 34 test3.style.display = 'list-item'; |
31 document.body.offsetTop; | 35 document.body.offsetTop; |
32 document.body.style.zoom = 2; | 36 document.body.style.zoom = 2; |
33 } | 37 } |
34 window.onload = crash; | 38 window.onload = crash; |
35 </script> | 39 </script> |
36 </head> | 40 </head> |
37 <body> | 41 <body> |
38 Test passes if it does not crash. | 42 Test passes if it does not crash. |
39 </body> | 43 </body> |
40 </html> | 44 </html> |
OLD | NEW |