text-indent-applies-to-013

Text-indent application on a 'display: table-column' element

WeasyPrint

This browser

Flags
ahem
Assertion
The 'text-indent' property is not applied to 'display: table-column' 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-column' 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 not applied to 'display: table-column' elements.">
10         <style type="text/css">
11             div
12             {
13                 font: 16px/1em Ahem;
14             }
15             #table
16             {
17                 display: table;
18                 table-layout: fixed;
19                 width: 100%;
20             }
21             #test
22             {
23                 display: table-column;
24                 text-indent: 10em;
25             }
26             #row
27             {
28                 display: table-row;
29             }
30             #cell
31             {
32                 display: table-cell;
33             }
34             #div1
35             {
36                 background: blue;
37                 height: 1em;
38                 width: 6em;
39             }
40         </style>
41     </head>
42     <body>
43         <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>
44         <div id="table">
45             <div id="test"></div>
46             <div id="row">
47                 <div id="cell">XXXXXX</div>
48             </div>
49         </div>
50         <div id="div1"></div>
51     </body>
52 </html>