4 <title>CSS
2.1 Test Suite: :first-line
</title>
5 <link rel=
"author" title=
"Boris Zbarsky" href=
"mailto:bzbarsky@mit.edu" />
6 <link rel=
"author" title=
"Mozilla Corporation" href=
"http://mozilla.com/" />
7 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/selector.html#first-line"/>
8 <meta name=
"flags" content=
"dom" />
11 div::first-line { color: red }
15 var s
= document
.createElement("span");
16 s
.setAttribute("style", "float: left");
17 s
.appendChild(document
.createTextNode("This should be green"));
18 var i
= document
.getElementById("i");
19 i
.parentNode
.insertBefore(s
, i
);
23 <body onload=
"runTest()">
24 <div><span id=
"i"></span></div>