white-space-applies-to-009

White-space application to 'display: table-header-group' element

WeasyPrint

This browser

Flags
ahem
Assertion
The 'white-space' 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: White-space 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-white-space">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-prop">
 8         <meta name="flags" content="ahem">
 9         <meta name="assert" content="The 'white-space' 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                 font-family: Ahem;
19             }
20             #test
21             {
22                 display: table-header-group;
23                 white-space: pre;
24             }
25             #row
26             {
27                 display: table-row;
28             }
29             #cell
30             {
31                 display: table-cell;
32             }
33             #div1, #div2
34             {
35                 background: black;
36                 display: inline-block;
37                 height: 1em;
38                 width: 2em;
39             }
40             #div2
41             {
42                 margin-left: 3em;
43             }
44         </style>
45     </head>
46     <body>
47         <p>Test passes if there are only two boxes below.</p>
48         <div id="table">
49             <div id="test">
50                 <div id="row">
51                     <div id="cell">XX   XX</div>
52                 </div>
53             </div>
54         </div>
55         <div id="div1"></div><div id="div2"></div>
56     </body>
57 </html>