| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 Webkit Bug 86019 - Crash due to floats not removed from first-letter element. | 3 Webkit Bug 86019 - Crash due to floats not removed from first-letter element. |
| 4 <style> | 4 <style> |
| 5 .li2 { width: 0px; } | 5 .li2 { width: 0px; } |
| 6 .li2:first-letter { float: left; content: counter(section); } | 6 .li2:first-letter { float: left; content: counter(section); } |
| 7 .li2:first-of-type { display: -webkit-inline-flexbox; } | 7 .li2:first-of-type { display: -webkit-inline-flexbox; } |
| 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 crash() { | 13 function crash() { |
| 14 li1 = document.createElement('li'); | 14 li1 = document.createElement('li'); |
| 15 document.documentElement.appendChild(li1); | 15 document.documentElement.appendChild(li1); |
| 16 keygen1 = document.createElement('keygen'); | 16 keygen1 = document.createElement('keygen'); |
| 17 keygen1.setAttribute('autofocus', 'autofocus'); | 17 keygen1.setAttribute('autofocus', 'autofocus'); |
| 18 document.documentElement.appendChild(keygen1); | 18 document.documentElement.appendChild(keygen1); |
| 19 li2 = document.createElement('li'); | 19 li2 = document.createElement('li'); |
| 20 li2.setAttribute('class', 'li2'); | 20 li2.setAttribute('class', 'li2'); |
| 21 document.documentElement.appendChild(li2); | 21 document.documentElement.appendChild(li2); |
| 22 text1 = document.createTextNode("PASS. WebKit didn't crash."); | 22 text1 = document.createTextNode("PASS. WebKit didn't crash."); |
| 23 li2.appendChild(text1); | 23 li2.appendChild(text1); |
| 24 } | 24 } |
| 25 window.onload = crash; | 25 window.onload = crash; |
| 26 </script> | 26 </script> |
| 27 </html> | 27 </html> |
| OLD | NEW |