text-indent-overflow-003

Text-indent with value larger than the available width with 'overflow' set to 'visible'

WeasyPrint

This browser

Flags
ahem
Assertion
The 'text-indent' property with a value exceeding the available width 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 value larger than the available width 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 a value exceeding the available width follows the 'overflow: visible' assignment.">
 9         <style type="text/css">
10             #div1
11             {
12                 font-family: Ahem;
13                 line-height: 1em;
14                 width: 40em;
15             }
16             #div2
17             {
18                 text-indent: 10em;
19                 width: 5em;
20             }
21             #div3
22             {
23                 background: blue;
24                 height: 1em;
25                 margin-left: 10em;
26                 width: 5em;
27             }
28         </style>
29     </head>
30     <body>
31         <p>Test passes if the black box below is directly above the blue box.</p>
32         <div id="div1">
33             <div id="div2">XXXXX</div>
34             <div id="div3"></div>
35         </div>
36     </body>
37 </html>