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: zero width non-breaking space</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/005.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 /* setup */
10 .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
11 td * { white-space: normal; font: inherit; }
12 div { display: block; }
13 span { display: inline; }
14
15 /* test */
16 td { font: 20px/1 Ahem; color: maroon; background: red; padding: 0; }
17 span { background: lime; }
18 div { color: green; }
19 </style>
20 </head>
21 <body>
22 <div class="control">Ahem_font_required_for_this_test.</div>
23 <p>There should be no red below, only a green square bordered in green.</p>
24 <!-- U+00A0 is exactly equivalent to U+200B U+0020 U+200B -->
25 <table>
26 <tr>
27 <td>
28 <div>XXXXX</div>
29 <div>X<span> </span>X</div>
30 <div>X<span>​ ​ ​ ​</span>X</div>
31 <div>X<span> ​ ​ </span>X</div>
32 <div>XXXXX</div>
33 </td>
34 </tr>
35 </table>
36 </body>
37 </html>