first-line-pseudo-021.xht (767B)
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: Inheritance</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-line/005.html" type="type/html"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" /> 8 <link rel="match" href="../reference/ref-this-text-should-be-green.xht" /> 9 <style type="text/css"> 10 p { color: red; } 11 p:first-line { color: green; } 12 span { color: inherit; } 13 </style> 14 </head> 15 <body> 16 <p><span>This text should be green.</span></p> 17 </body> 18 </html>