c565-list-pos-001

list-style-position

WeasyPrint

This browser

Assertion
The marker box is inside the principal block box.

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: list-style-position</title>
 5   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#list-style-position">
 6   <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
 7   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 8   <meta name="assert" content="The marker box is inside the principal block box.">
 9   <style type="text/css">
10    li {
11      width: 10em;
12      margin: 0.5em 5em;
13      padding: 0;
14      list-style-position: inside;
15      background: navy;
16      color: white; }
17   </style>
18   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#lists" title="12.5 Lists">
19  </head>
20  <body>
21   <p>There must be a navy rectangle below, with a white bullet inside.</p>
22   <ul>
23    <li>&nbsp;</li>
24   </ul>
25  </body>
26 </html>