1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
5 <style type=
"text/css">
6 #targeta:first-letter
{ color: blue
; }
7 #targetb:first-letter
{ color: blue
; }
8 #targetc:first-letter
{ color: blue
; }
11 <script type=
"text/javascript">
14 document
.body
.offsetTop
;
15 document
.getElementById("targeta").innerHTML
= "PASS";
16 document
.getElementById("targetb").firstChild
.data
= "PASS";
17 document
.getElementById("targetc").replaceChild(document
.createTextNode("PASS"), document
.getElementById("targetc").firstChild
);
22 <body onload=
"test()">
24 Test for
<i><a href=
"https://bugs.webkit.org/show_bug.cgi?id=3560">http://bugzilla.opendarwin.org/show_bug.cgi?id=
3560</a>
25 page with use of first-letter crashes reproducibly in LayoutObject::renderArena()
</i>.
28 The next three lines should all read
“<span style=
"color: blue;">P
</span>ASS
”, with nothing before the P.
31 <p id=
"targeta">didn
’t run
</p>
32 <p id=
"targetb">didn
’t run
</p>
33 <p id=
"targetc">didn
’t run
</p>