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 through padding, borders, margins</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/001.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 .prereq { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
10 .test { font: 1em/1 Ahem; background: white; color: red; }
11 .test span { background: red; color: green; }
12 .a, .b, .c, .d, .e { margin-left: 1em; }
13 .f span { margin-left: 1em; }
14 .g span { padding-left: 1em; background: white; }
15 .h span { border-left: 1em white solid; }
16 .i span { margin-left: 0.25em; border-left: 0.5em white solid; padding-left: 0.25em; background: white; }
17 </style>
18 </head>
19 <body>
20 <div class="prereq">Ahem_font_required_for_this_test,_see_directory_listing_for_details.</div>
21 <p>There should just be a solid thin line of green below with no red anywhere.</p>
22 <div class="test a"><span>X</span> </div>
23 <div class="test b"><span> X</span> </div>
24 <div class="test c"> <span>X</span> </div>
25 <div class="test d"> <span> X</span> </div>
26 <div class="test e"> <span> X</span> </div>
27 <div class="test f"> <span> X</span> </div>
28 <div class="test g"> <span> X</span> </div>
29 <div class="test h"> <span> X</span> </div>
30 <div class="test i"> <span> X</span> </div>
31 <div class="test a"><span>X</span> </div>
32 </body>
33 </html>