first-line-selector-008.xht (1129B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: First-line and allowed properties</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" /> 7 <meta name="assert" content="First-line allows letter-spacing, text-decoration, text-transform and line-height properties." /> 8 <style type="text/css"> 9 #div1:first-line, #div2 10 { 11 font: 24px sans-serif; 12 color: gray; 13 letter-spacing: 5px; 14 text-decoration: underline; 15 text-transform: capitalize; 16 line-height: 48px; 17 } 18 </style> 19 </head> 20 <body> 21 <p>Test passes if the two lines of text below look identical.</p> 22 <div id="div1">filler text filler text filler text</div> 23 <div id="div2">Filler Text Filler Text Filler Text</div> 24 </body> 25 </html>