word-spacing-applies-to-009

Word-spacing application to 'display: table-header-group' element

WeasyPrint

This browser

Flags
ahem
Assertion
The 'word-spacing' property applies to 'display: table-header-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: Word-spacing application to 'display: table-header-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-word-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 'word-spacing' property applies to 'display: table-header-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-header-group;
22                 word-spacing: 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                 width: 22em;
37             }
38         </style>
39     </head>
40     <body>
41         <p>Test passes if there are two black boxes below and the last black box ends when the blue box ends.</p>
42         <div id="table">
43             <div id="test">
44                 <div id="row">
45                     <div id="cell">XXXXX XXXXXX</div>
46                 </div>
47             </div>
48         </div>
49         <div id="div1"></div>
50     </body>
51 </html>