white-space-normal-002

white-space normal: simple tests

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: 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/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    * { white-space: normal; }
11    div { display: block; }
12    span { display: inline; }
13    table { padding: 0; border-spacing: 0; border: solid; }
14    td { font: 20px/1 Ahem; color: red; background: red; padding: 0; }
15    .red { background: red; }
16    .green { color: green; background: lime; }
17    .check { width: 3em; background: lime; color: green; }
18   </style>
19  </head>
20  <body>
21   <div class="control">Ahem_font_required_for_this_test.</div>
22   <p>There should be three columns below, dark green, light green, and dark green, with no red anywhere.</p>
23   <table>
24    <tr>
25     <td>
26      <div class="red">  </div>
27      <div class="red">  <div></div></div>
28      <div class="red">  <div>  </div></div>
29      <div class="red"><div>  </div></div>
30      <div class="red"><div>  </div>  </div>
31      <div class="red"><div></div>  </div>
32      <div class="red">  <div></div>  </div>
33      <div class="red">  <div>  </div>  </div>
34      <div class="green"><span>X</span>  <span>X</span></div>
35      <div class="green">  <span>X</span>  <span>X</span></div>
36      <div class="green"><span>X</span>  <span>X</span>  </div>
37      <div class="green">  <div></div>  <span>X</span>  <span>X</span>  </div>
38      <div class="green">  <span>X</span>  <span>X</span>  <div></div>  </div>
39      <div class="check">X X</div>
40     </td>
41    </tr>
42   </table>
43  </body>
44 </html>