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-wrap'</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-wrap' does not remove extra spacing when two spaces are next to each other and introduces line breaking opportunities.">
10 <style type="text/css">
11 div
12 {
13 font: 20px/1em Ahem;
14 margin: 0;
15 padding: 0;
16 }
17 #test
18 {
19 white-space: pre-wrap;
20 width: 5em;
21 }
22 #reference
23 {
24 background: blue;
25 display: inline-block;
26 height: 1em;
27 width: 2em;
28 }
29 </style>
30 </head>
31 <body>
32 <p>Test passes if there is a single black box above a blue box (there can be white space between the boxes) and the black box has the same width as the blue box.</p>
33 <div id="test">XX XX</div>
34 <div id="reference"></div>
35 </body>
36 </html>