text-indent-applies-to-014

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

WeasyPrint

This browser

Flags
ahem
Assertion
The 'text-indent' property is applied to 'display: table-cell' 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-cell' 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-cell' 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             }
20             #row
21             {
22                 display: table-row;
23             }
24             #cell
25             {
26                 display: table-cell;
27                 text-indent: 10em;
28             }
29             #div1
30             {
31                 background: blue;
32                 height: 1em;
33                 margin-left: 10em;
34                 width: 5em;
35             }
36         </style>
37     </head>
38     <body>
39         <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>
40         <div id="table">
41             <div id="row">
42                 <div id="cell">XXXXX</div>
43             </div>
44         </div>
45         <div id="div1"></div>
46     </body>
47 </html>