1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
4 <title>CSS 2.1 Test Suite: Multiple Pseudo-Elements</title>
5 <style type="text/css">
7 p:first-line { color: teal; }
8 p:first-letter { color: aqua; }
9 .one:first-line { font-size: 300%; }
10 .one:first-letter { font-size: 300%; }
11 p.two:first-letter { font-size: 200%; }
12 p.two:first-line { font-variant: small-caps; }
13 /* three uses the default styles */
15 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-letter" title="5.12.2 The :first-letter pseudo-element">
16 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" title="5.12.1 The :first-line pseudo-element">
20 The <strong>first letter</strong> of this paragraph, and only that
21 one, should be <strong>600% bigger</strong> than the normal text
22 (300% bigger than the rest of first line of this paragraph) and
23 <strong>aqua</strong>, while the entire <strong>first line</strong>
24 should be <strong>300% bigger</strong> than normal and
25 <strong>teal</strong>. If this precise combination does not occur,
26 then the user agent has failed this test. Remember that in order to
27 ensure a complete test, the paragraph must be displayed on more
28 than one line. (TEST1)
31 "Test": The first <strong>two characters</strong> in this paragraph
32 (a double-quote mark and a capital 'T') should be <strong>200%
33 bigger</strong> than the rest of the paragraph, and
34 <strong>aqua</strong>. In addition, the entire <strong>first
35 line</strong> should be in a <strong>small-caps font and
36 teal</strong>. Remember that in order to ensure a complete test,
37 the paragraph must be displayed on more than one line. (TEST2)
40 The <strong>first letter</strong> of this paragraph, and only that
41 one, should be <strong>aqua</strong>, while the entire
42 <strong>first line</strong> should be <strong>teal</strong>. If
43 this precise combination does not occur, then the user agent has
44 failed this test. Remember that in order to ensure a complete test,
45 the paragraph must be displayed on more than one line. (TEST3)
47 <div>You should see the words <strong>"TEST1"</strong>,
48 <strong>"TEST2"</strong>, and <strong>"TEST3"</strong> at the end of
49 three paragraphs above.</div>