letter-spacing-applies-to-011

Letter-spacing application on a 'display: table-row' element

WeasyPrint

This browser

Flags
ahem
Assertion
The 'letter-spacing' property is applied to 'display: table-row' 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: Letter-spacing application on a 'display: table-row' 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-letter-spacing">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#spacing-props">
 8         <meta name="flags" content="ahem">
 9         <meta name="assert" content="The 'letter-spacing' property is applied to 'display: table-row' elements.">
10         <style type="text/css">
11             div
12             {
13                 font: 16px/1em Ahem;
14             }
15             #table
16             {
17                 display: table;
18             }
19             #row
20             {
21                 display: table-row;
22                 letter-spacing: 1em;
23             }
24             #cell
25             {
26                 display: table-cell;
27             }
28             #div1
29             {
30                 background: blue;
31                 height: 1em;
32                 width: 11em;
33             }
34         </style>
35     </head>
36     <body>
37         <p>Test passes if there are six black boxes below and the last black box ends when the blue box ends.</p>
38         <div id="table">
39             <div id="row">
40                 <div id="cell">XXXXXX</div>
41             </div>
42         </div>
43         <div id="div1"></div>
44     </body>
45 </html>