1
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
4 <title>CSS
2.1 Test Suite: Pseudo-elements in Selectors
</title>
5 <style type=
"text/css">
7 p:first-line
{ background: green
; }
8 p
.test:first-line
{ color: white
; }
9 p:first-line
.two
{ color: yellow
; background: red
; }
11 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/selector.html#pseudo-elements" title=
"5.10 Pseudo-elements and pseudo-classes">
12 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" title=
"5.12.1 The :first-line pseudo-element">
15 <div>There should be two lines of text below.
</div>
16 <p class=
"test one"> This line should be white on green.
</p>
17 <p class=
"test two"> This line should be white on green.
</p>