c562-white-sp-000

white-space

WeasyPrint

This browser

Flags
ahem, image

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</title>
 5   <meta name="flags" content="ahem image">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#white-space">
 7   <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
 8   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 9   <style type="text/css">
10    div { font: 15px/1 Ahem; color: green; background: red url(support/css1test562.png) no-repeat; border: solid black; width: 15em; }
11    div p { margin: 0; }
12    .one {white-space: pre;}
13    .two {white-space: nowrap;}
14    .three {white-space: normal;}
15   </style>
16   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-prop" title="16.6 Whitespace: the 'white-space' property">
17  </head>
18  <body>
19   <p>There should be a single green block below.</p>
20   <div>
21    <p class="one">x  x   x
22  x    x   x
23     x   x</p>
24    <p class="two">x  x   x
25  x    x   x
26     x   x</p>
27    <p class="one">x  x   x
28  x    <span class="three">x   x
29     x   x</span></p>
30   </div>
31  </body>
32 </html>