list-style-position-021

List-style-position set to 'outside'

WeasyPrint

This browser

Assertion
The 'list-style-position' property set to 'outside' places the marker outside 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 'outside'</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 'outside' places the marker outside 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: outside;
20             }
21         </style>
22     </head>
23     <body>
24         <p>Test passes if the two lines of text in the blue box are directly lined up with each other and there is a single bullet to the left of the lines of text.</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>