word-spacing-justify-001

Word-spacing and 'text-align: justify'

WeasyPrint

This browser

Flags
ahem
Assertion
The word spacing is changed when combined with 'text-align: justify'.

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 and 'text-align: justify'</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#spacing-props">
 7         <meta name="flags" content="ahem">
 8         <meta name="assert" content="The word spacing is changed when combined with 'text-align: justify'.">
 9         <style type="text/css">
10             span
11             {
12                 display: block;
13                 font: 16px/1em Ahem;
14                 text-align: justify;
15                 width: 20em;
16                 word-spacing: 3em;
17             }
18         </style>
19     </head>
20     <body>
21         <p>Test passes if there are three distinct boxes below.</p>
22         <div>
23             <span>XXXXX XXXXX XXXXX XXXXX</span>
24         </div>
25     </body>
26 </html>