letter-spacing-justify-001

Letter-spacing and 'text-align: justify'

WeasyPrint

This browser

Flags
ahem
Assertion
The letter-spacing is not 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: Letter-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 letter-spacing is not changed when combined with 'text-align: justify'.">
 9         <style type="text/css">
10             #div1
11             {
12                 font-family: Ahem;
13                 letter-spacing: 1em;
14                 line-height: 1em;
15                 text-align: justify;
16                 width: 6em;
17             }
18             #div2
19             {
20                 background: blue;
21                 height: 1em;
22                 width: 11em;
23             }
24         </style>
25     </head>
26     <body>
27         <p>Test passes if there are six black boxes below and the last black box ends when the blue box ends.</p>
28         <div>
29             <div id="div1">XXXXXX XXXXXX</div>
30             <div id="div2"></div>
31         </div>
32     </body>
33 </html>