word-spacing-applies-to-003

Word-spacing application to 'display: list-item' element

WeasyPrint

This browser

Flags
ahem
Assertion
The 'word-spacing' property applies to 'display: list-item' 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: list-item' 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: list-item' elements.">
10         <style type="text/css">
11             body
12             {
13                 margin-left: 2em;
14             }
15             div
16             {
17                 font: 16px/1em Ahem;
18             }
19             div div
20             {
21                 display: list-item;
22                 word-spacing: 10em;
23             }
24             #div2
25             {
26                 background: blue;
27                 height: 1em;
28                 width: 22em;
29             }
30         </style>
31     </head>
32     <body>
33         <p>Test passes if there are two black boxes below and the last black box ends when the blue box ends. There also needs to be a marker bullet on the left-hand side of the left most black box.</p>
34         <div>
35             <div>XXXXX XXXXXX</div>
36         </div>
37         <div id="div2"></div>
38     </body>
39 </html>