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 'pre' vs. 'pre' 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#white-space-prop">
7 <meta name="flags" content="">
8 <meta name="assert" content="The 'pre' element and 'white-space: pre' assignment behave the same way with respect to white space.">
9 <style type="text/css">
10 pre, div
11 {
12 font-family: monospace;
13 font-size: 10pt;
14 }
15 div
16 {
17 white-space: pre;
18 }
19 </style>
20 </head>
21 <body>
22 <p>Test passes if the next two lines have the exact same spacing.</p>
23 <div> The spacing on these two sentences need to be the same! </div>
24 <pre> The spacing on these two sentences need to be the same! </pre>
25 </body>
26 </html>