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