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-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-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-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 white-space: pre;
23 }
24 #cell
25 {
26 display: table-cell;
27 }
28 #div1, #div2
29 {
30 background: black;
31 display: inline-block;
32 height: 1em;
33 width: 2em;
34 }
35 #div2
36 {
37 margin-left: 3em;
38 }
39 </style>
40 </head>
41 <body>
42 <p>Test passes if there are only two boxes below.</p>
43 <div>
44 <div id="table">
45 <div id="row">
46 <div id="cell">XX XX</div>
47 </div>
48 </div>
49 </div>
50 <div id="div1"></div><div id="div2"></div>
51 </body>
52 </html>