first-line-001

:first-line

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Source

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