word-spacing-applies-to-001

Word-spacing application to 'display: inline' element

WeasyPrint

This browser

Flags
ahem
Assertion
The 'word-spacing' property applies to 'display: inline' elements.

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 application to 'display: inline' element</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#propdef-word-spacing">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#spacing-props">
 8         <meta name="flags" content="ahem">
 9         <meta name="assert" content="The 'word-spacing' property applies to 'display: inline' elements.">
10         <style type="text/css">
11             div
12             {
13                 font: 16px/1em Ahem;
14             }
15             div div
16             {
17                 display: inline;
18                 word-spacing: 10em;
19             }
20             #div1
21             {
22                 background: blue;
23                 height: 1em;
24                 width: 22em;
25             }
26         </style>
27     </head>
28     <body>
29         <p>Test passes if there are two black boxes below and the last black box ends when the blue box ends.</p>
30         <div>
31             <div>XXXXX XXXXXX</div>
32         </div>
33         <div id="div1"></div>
34     </body>
35 </html>