list-style-position-020

List-style-position set to 'inside'

WeasyPrint

This browser

Assertion
The 'list-style-position' property set to 'inside' places the marker inside of the list item 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 set to 'inside'</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-list-style-position">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="The 'list-style-position' property set to 'inside' places the marker inside of the list item principal block box.">
10         <style type="text/css">
11             div
12             {
13                 border: 1px solid blue;
14                 padding-left: 50px;
15             }
16             span
17             {
18                 display: list-item;
19                 list-style-position: inside;
20             }
21         </style>
22     </head>
23     <body>
24         <p>Test passes if the second line of text in the blue box is shifted to the left and is underneath the bullet.</p>
25         <div>
26             <span>
27                 Filler Text Filler Text Filler Text<br>
28                 Filler Text Filler Text Filler Text
29             </span>
30         </div>
31     </body>
32 </html>