first-line-selector-008

First-line and allowed properties

WeasyPrint

This browser

Assertion
First-line allows letter-spacing, text-decoration, text-transform and line-height 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 allowed 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 allows letter-spacing, text-decoration, text-transform and line-height properties.">
 9         <style type="text/css">
10             #div1:first-line, #div2
11             {
12                 font: 24px sans-serif;
13                 color: gray;
14                 letter-spacing: 5px;
15                 text-decoration: underline;
16                 text-transform: capitalize;
17                 line-height: 48px;
18             }
19         </style>
20     </head>
21     <body>
22         <p>Test passes if the two lines of text below look identical.</p>
23         <div id="div1">filler text filler text filler text</div>
24         <div id="div2">Filler Text Filler Text Filler Text</div>
25     </body>
26 </html>