OLD | NEW |
(Empty) | |
| 1 <script> |
| 2 if (window.testRunner) { |
| 3 testRunner.waitUntilDone(); |
| 4 testRunner.dumpAsText(); |
| 5 } |
| 6 </script> |
| 7 <style> |
| 8 .fixed:nth-last-child(even) { display: table-column; position: fixed; } |
| 9 .float { float: left; border-style: ridge; } |
| 10 </style> |
| 11 <script> |
| 12 function crash(caption, thead) { |
| 13 caption.appendChild(thead); |
| 14 if (window.testRunner) |
| 15 testRunner.notifyDone(); |
| 16 } |
| 17 |
| 18 function boom() { |
| 19 var section = document.createElement('section'); |
| 20 section.setAttribute('class', 'fixed'); |
| 21 document.documentElement.appendChild(section); |
| 22 var input = document.createElement('input'); |
| 23 document.documentElement.appendChild(input); |
| 24 var input2 = document.createElement('input'); |
| 25 document.documentElement.appendChild(input2); |
| 26 var table = document.createElement('table'); |
| 27 document.documentElement.appendChild(table); |
| 28 var tbody = document.createElement('tbody'); |
| 29 document.documentElement.appendChild(tbody); |
| 30 var thead = document.createElement('thead'); |
| 31 thead.setAttribute('class', 'float'); |
| 32 var ul = document.createElement('ul'); |
| 33 document.documentElement.appendChild(ul); |
| 34 var caption = document.createElement('caption'); |
| 35 document.documentElement.appendChild(caption); |
| 36 setTimeout(function() { ul.appendChild(table); }, 50); |
| 37 section.appendChild(thead); |
| 38 setTimeout(crash(caption, thead), 60); |
| 39 } |
| 40 window.onload = boom; |
| 41 </script> |
| 42 <p> The test should not crash.</p> |
OLD | NEW |