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-indent application on a '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-text-indent">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#indentation-prop">
8 <meta name="flags" content="ahem">
9 <meta name="assert" content="The 'text-indent' property is applied to display: list-item elements.">
10 <style type="text/css">
11 div
12 {
13 font: 16px/1em Ahem;
14 }
15 div div
16 {
17 display: list-item;
18 margin-left: 1em;
19 text-indent: 2em;
20 }
21 #div1
22 {
23 background: blue;
24 height: 1em;
25 margin-left: 3em;
26 width: 5em;
27 }
28 </style>
29 </head>
30 <body>
31 <p>Test passes if the black box is directly above the blue box and there is a marker bullet on the left-hand side of the black box. (Note that the two boxes do not need to be touching.)</p>
32 <div>
33 <div>XXXXX</div>
34 </div>
35 <div id="div1"></div>
36 </body>
37 </html>