first-line-inherit-003

:first-line

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html><head>
 3     <link rel="reference" href="first-line-inherit-003-ref.xht">
 4     <title>CSS Test: :first-line</title>
 5     <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
 6     <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
 7     <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo">
 8     <meta name="flags" content="">
 9     <style type="text/css">
10       div, p { background: green; }
11       div:first-line, p:first-line { background-color: red; }
12       span.one { background: inherit; }
13       span.two { background-color: inherit; }
14     </style>
15   </head>
16   <body>
17     <div><p><span class="one">One</span><span class="two">Two</span></p></div>
18   
19 </body></html>