first-line-inherit-002.xht (827B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> 2 <title>CSS Test: :first-line</title> 3 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> 4 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> 5 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo" /> 6 <link rel="match" href="first-line-inherit-002-ref.xht"/> 7 <style type="text/css"> 8 div { background: green; } 9 div:first-line { background-color: red; } 10 span.one { background: inherit; } 11 span.two { background-color: inherit; } 12 </style> 13 </head> 14 <body> 15 <div><span class="one">One</span><span class="two">Two</span></div> 16 17 </body></html>