1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Pseudo-elements in Selectors</title>
5 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#pseudo-elements-in-selectors">
6 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
7 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
8 <style type="text/css">
9 .test { color: red; }
10 p:first-line { background: green; }
11 p.test:first-line { color: white; }
12 p:first-line.two { color: yellow; background: red; }
13 </style>
14 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#pseudo-elements" title="5.10 Pseudo-elements and pseudo-classes">
15 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" title="5.12.1 The :first-line pseudo-element">
16 </head>
17 <body>
18 <div>There should be two lines of text below.</div>
19 <p class="test one"> This line should be white on green. </p>
20 <p class="test two"> This line should be white on green. </p>
21 </body>
22 </html>