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: :first-letter in XML</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/selectors/first-letter/001.xml" type="application/xhtml+xml">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter">
8 <style type="text/css">
9 .test { float: left; font: 2em sans-serif; }
10 .test:first-letter { color: green; }
11 </style>
12 </head>
13 <body>
14 <p>This next line should be green:</p>
15 <div class="test">T</div>
16 <div class="test">E</div>
17 <div class="test">S</div>
18 <div class="test"><div>T</div></div> <!-- debatable, CSS2.1 should clarify this -->
19 <div class="test"> I </div>
20 <div class="test"><!-- FAIL -->N</div>
21 <div class="test">
22 G</div>
23 </body>
24 </html>