text-indent-applies-to-010

Text-indent application on a 'display: table-footer-group' element

WeasyPrint

This browser

Flags
ahem
Assertion
The 'text-indent' property is applied to 'display: table-footer-group' elements.

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 application on a 'display: table-footer-group' element</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#propdef-text-indent">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#indentation-prop">
 8         <meta name="flags" content="ahem">
 9         <meta name="assert" content="The 'text-indent' property is applied to 'display: table-footer-group' elements.">
10         <style type="text/css">
11             div
12             {
13                 font: 16px/1em Ahem;
14             }
15             #table
16             {
17                 display: table;
18             }
19             #test
20             {
21                 display: table-footer-group;
22                 text-indent: 10em;
23             }
24             #row
25             {
26                 display: table-row;
27             }
28             #cell
29             {
30                 display: table-cell;
31             }
32             #div1
33             {
34                 background: blue;
35                 height: 1em;
36                 margin-left: 10em;
37                 width: 5em;
38             }
39         </style>
40     </head>
41     <body>
42         <p>Test passes if the black box below is directly above the blue box. (Note that the two boxes do not need to be touching.)</p>
43         <div id="table">
44             <div id="test">
45                 <div id="row">
46                     <div id="cell">XXXXX</div>
47                 </div>
48             </div>
49         </div>
50         <div id="div1"></div>
51     </body>
52 </html>