| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 Webkit bug 83552 - Crash due to captions list not updated after section recalc.<
br /> | 3 Webkit bug 83552 - Crash due to captions list not updated after section recalc.<
br /> |
| 4 Test passes if it does not crash. | 4 Test passes if it does not crash. |
| 5 <style> | 5 <style> |
| 6 .flexbox1 + .caption1 { display: table-caption; } | 6 .flexbox1 + .caption1 { display: table-caption; } |
| 7 .flexbox1 { display: -webkit-inline-box; } | 7 .flexbox1 { display: -webkit-inline-box; } |
| 8 </style> | 8 </style> |
| 9 <script> | 9 <script> |
| 10 if (window.layoutTestController) | 10 if (window.layoutTestController) |
| 11 layoutTestController.dumpAsText(); | 11 layoutTestController.dumpAsText(); |
| 12 | 12 |
| 13 function runTest() { | 13 function runTest() { |
| 14 div1 = document.createElement('div'); | 14 div1 = document.createElement('div'); |
| 15 document.documentElement.appendChild(div1); | 15 document.documentElement.appendChild(div1); |
| 16 div2 = document.createElement('div'); | 16 div2 = document.createElement('div'); |
| 17 div1.appendChild(div2); | 17 div1.appendChild(div2); |
| 18 cell1 = document.createElement('td'); | 18 cell1 = document.createElement('td'); |
| 19 cell1.setAttribute('class', 'caption1'); | 19 cell1.setAttribute('class', 'caption1'); |
| 20 div1.appendChild(cell1); | 20 div1.appendChild(cell1); |
| 21 div1.setAttribute('class', 'flexbox1'); | 21 div1.setAttribute('class', 'flexbox1'); |
| 22 document.body.offsetTop; | 22 document.body.offsetTop; |
| 23 div2.setAttribute('class', 'flexbox1'); | 23 div2.setAttribute('class', 'flexbox1'); |
| 24 document.body.offsetTop; | 24 document.body.offsetTop; |
| 25 div2.setAttribute('class', ''); | 25 div2.setAttribute('class', ''); |
| 26 } | 26 } |
| 27 window.onload = runTest; | 27 window.onload = runTest; |
| 28 </script> | 28 </script> |
| 29 </html> | 29 </html> |
| OLD | NEW |