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 set to 'pre'</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 set to 'pre' does not remove extra spacing when more than one space is next to another.">
10 <style type="text/css">
11 div
12 {
13 font: 1em Ahem;
14 line-height: 1em;
15 }
16 #test
17 {
18 white-space: pre;
19 }
20 #reference
21 {
22 height: 1em;
23 width: 7em;
24 }
25 #div1, #div3
26 {
27 background: black;
28 }
29 #div1, #div2, #div3
30 {
31 display: inline-block;
32 height: 1em;
33 width: 2em;
34 }
35 #div2
36 {
37 height: 1em;
38 width: 3em;
39 }
40 </style>
41 </head>
42 <body>
43 <p>Test passes if there are two black squares on the page.</p>
44 <div id="test">XX XX</div>
45 <div id="reference"><div id="div1"></div><div id="div2"></div><div id="div3"></div></div>
46 </body>
47 </html>