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: simple tests</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/none/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 .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
10 .test { font: 2em/1 Ahem; color: teal; background: aqua; white-space: normal; width: 3em; border: solid black; }
11 .test span { display: none; color: red; background: maroon; }
12 em { background: red; }
13 </style>
14 </head>
15 <body>
16 <div class="control">Ahem_font_required_for_this_test.</div>
17 <p>The following two blocks should be identical with no red present.</p>
18 <p class="test">X X</p>
19 <p class="test">
20 X <em>
21 <span>FAIL</span>
22 <span>FAIL</span>
23 <span>FAIL</span>
24 <span>FAIL</span>
25 <span>FAIL</span>
26 </em>X
27 </p>
28 </body>
29 </html>