c541-word-sp-000

word-spacing

WeasyPrint

This browser

Flags
ahem

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: word-spacing</title>
 5   <meta name="flags" content="ahem">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#word-spacing">
 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: 24px/1 Ahem; width: 18em; background: yellow; color: aqua; }
11    .one {word-spacing: 0.25in;}
12    .two {word-spacing: 0.635cm;}
13    .three {word-spacing: 6.35mm;}
14    .four {word-spacing: 18pt;}
15    .five {word-spacing: 1.5pc;}
16    .six {word-spacing: 1em;}
17    .seven {word-spacing: 1.25ex;}
18    .eight {word-spacing: 24px;}
19   </style>
20   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#spacing-props" title="16.4 Letter and word spacing: the 'letter-spacing' and 'word-spacing' properties">
21  </head>
22  <body>
23   <p>There should be a stripy pattern of yellow and aqua below (each vertical stripe should be straight and unbroken).</p>
24   <div class="test">x&nbsp;&nbsp;xx&nbsp;&nbsp;xxx&nbsp;&nbsp;xxxx</div>
25   <div class="test">x&nbsp;&nbsp;xx&nbsp;&nbsp;xxx&nbsp;&nbsp;xxxx</div>
26   <div class="test">x&nbsp;&nbsp;xx&nbsp;&nbsp;xxx&nbsp;&nbsp;xxxx</div>
27   <div class="one"> x xx xxx xxxx </div>
28   <div class="two"> x xx xxx xxxx </div>
29   <div class="three"> x xx xxx xxxx </div>
30   <div class="four"> x xx xxx xxxx </div>
31   <div class="five"> x xx xxx xxxx </div>
32   <div class="six"> x xx xxx xxxx </div>
33   <div class="seven"> x xx xxx xxxx </div>
34   <div class="eight"> x xx xxx xxxx </div>
35  </body>
36 </html>