white-space-normal-008

white-space normal: zero width non-breaking space

WeasyPrint

This browser

Source

 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/008.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    * { white-space: normal; font: inherit; }
12    div { display: block; margin: 1em; }
13    span { display: inline; }
14 
15    /* test */
16    div { font: 20px/1 Ahem; }
17    .green { background: lime; color: green; }
18    .red { background: red; color: maroon; }
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 two identical striped green and lime bars.</p>
24 
25   <div><span class="red">
26    <span class="green">X </span> <span class="red"> </span> <span class="green"> X </span>
27    <span class="green">X </span>  <span class="green"> X </span>
28    <span class="green">X</span><span class="green"> X<span class="red"> </span></span>
29   </span></div>
30 
31   <div><span class="green">X X X X X X</span></div>
32 
33  </body>
34 </html>