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 'normal' and linefeed characters</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#white-space-model">
7 <meta name="flags" content="ahem may">
8 <meta name="assert" content="Linefeed characters are transformed into spaces, zero-width space, or not rendered when 'white-space' is set to 'normal'.">
9 <style type="text/css">
10 div
11 {
12 font: 16px/1em Ahem;
13 height: 1em;
14 margin-bottom: 3px;
15 }
16 #div1
17 {
18 background-color: blue;
19 width: 5em;
20 }
21 #div2
22 {
23 background-color: orange;
24 width: 4em;
25 }
26 span
27 {
28 background-color: black;
29 white-space: normal;
30 }
31 </style>
32 </head>
33 <body>
34 <p>Test passes if the black box below is the same width as either the blue box or the orange box.</p>
35 <div id="div1"></div>
36 <div>
37 <span>XX
38 XX</span>
39 </div>
40 <div id="div2"></div>
41 </body>
42 </html>