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: collapsing at line edges</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/text/white-space/normal/collapsing/003.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model">
8 <style type="text/css">
9 .test { margin: 0.25em; border: 0.25em solid navy; padding: 0.1em; background: blue; color: yellow; text-decoration: underline; width: 7em; text-align: center; font: 2em Ahem, monospace; }
10 </style>
11 </head>
12 <body>
13 <p>The following lines should all look identical:</p>
14 <div class="test a">XXXX</div>
15 <div class="test b">XXXX </div>
16 <div class="test c"> XXXX</div>
17 <div class="test d"> XXXX </div>
18 <div class="test a"><span>XXXX</span></div>
19 <div class="test b"><span>XXXX </span></div>
20 <div class="test c"><span> XXXX</span></div>
21 <div class="test d"><span> XXXX </span></div>
22 </body>
23 </html>