text-indent-overflow-002

Text-indent with negative value with 'overflow' set to 'visible'

WeasyPrint

This browser

Flags
ahem
Assertion
The 'text-indent' property with negative value follows the 'overflow: visible' assignment.

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: Text-indent with negative value with 'overflow' set to 'visible'</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#indentation-prop">
 7         <meta name="flags" content="ahem">
 8         <meta name="assert" content="The 'text-indent' property with negative value follows the 'overflow: visible' assignment.">
 9         <style type="text/css">
10             #div1
11             {
12                 font-family: Ahem;
13                 line-height: 1em;
14                 padding-left: 5em;
15                 width: 40em;
16             }
17             div div
18             {
19                 text-indent: -5em;
20             }
21             #div2
22             {
23                 background: blue;
24                 height: 1em;
25                 width: 5em;
26             }
27         </style>
28     </head>
29     <body>
30         <p>Test passes if the black box below is directly above the blue box.</p>
31         <div id="div1">
32             <div>XXXXX</div>
33         </div>
34         <div id="div2"></div>
35     </body>
36 </html>