first-line-selector-009

First-line and inapplicable properties

WeasyPrint

This browser

Assertion
First-line does not allow the float, border or direction properties.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: First-line and inapplicable 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="flags" content="">
 8         <meta name="assert" content="First-line does not allow the float, border or direction properties.">
 9         <style type="text/css">
10             #div2:first-line
11             {
12                 float: right;
13                 border: 25px solid;
14                 direction: rtl;
15             }
16         </style>
17     </head>
18     <body>
19         <p>Test passes if the two lines of text below look identical.</p>
20         <div id="div1">Filler Text Filler Text Filler Text</div>
21         <div id="div2">Filler Text Filler Text Filler Text</div>
22     </body>
23 </html>