| OLD | NEW |
| (Empty) |
| 1 <!doctype html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>Test for https://bugs.webkit.org/show_bug.cgi?id=102957</title> | |
| 5 <style> | |
| 6 .content { | |
| 7 -webkit-flow-into: flow; | |
| 8 font-size: 50px; | |
| 9 color: green; | |
| 10 font-family: Ahem; | |
| 11 } | |
| 12 | |
| 13 .first-letter-div:first-letter { | |
| 14 color: red; | |
| 15 } | |
| 16 | |
| 17 .region { | |
| 18 -webkit-flow-from: flow; | |
| 19 height: 50px; | |
| 20 } | |
| 21 </style> | |
| 22 <script> | |
| 23 function removeFirstLetter() { | |
| 24 document.body.offsetTop; // force layout | |
| 25 document.getElementById("target").style.display = "none"; | |
| 26 } | |
| 27 </script> | |
| 28 </head> | |
| 29 <body onload="removeFirstLetter()"> | |
| 30 <p>Test case for <a href="https://bugs.webkit.org/show_bug.cgi?id=102957
">102957</a>.</p> | |
| 31 <p>Testing that the removal of the first-letter pseudo render object wil
l not crash the flow thread logic.</p> | |
| 32 <p>You should see a green rectangle. There should be no red or yellow.</
p> | |
| 33 <div class="content"> | |
| 34 <div id="target" class="first-letter-div">aaaa</div> | |
| 35 aaaa | |
| 36 </div> | |
| 37 <div class="region"></div> | |
| 38 </body> | |
| 39 </html> | |
| OLD | NEW |