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: Text-align 'justify' and space and word stretching</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting">
7 <meta name="flags" content="may">
8 <meta name="assert" content="If 'text-align' is set to 'justify' the user agent may stretch spaces and/or words.">
9 <style type="text/css">
10 div
11 {
12 color: orange;
13 font: 1em/1 Ahem;
14 text-align: justify;
15 width: 20em;
16 }
17 span
18 {
19 color: blue;
20 }
21 </style>
22 </head>
23 <body>
24 <p>Test passes if the rightmost orange box extends to the right of the rightmost blue box.</p>
25 <div>
26 XXXX XXXX XXXXXX <span>XXXXX XXXXXX XXX</span>
27 </div>
28 </body>
29 </html>