list-style-009

List-style with list-style-image list-style-position as values

WeasyPrint

This browser

Flags
image
Assertion
The shorthand property 'list-style' applies 'list-style-image' and 'list-style-position'.

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 with list-style-image list-style-position as values</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">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style">
 8         <meta name="flags" content="image">
 9         <meta name="assert" content="The shorthand property 'list-style' applies 'list-style-image' and 'list-style-position'.">
10         <style type="text/css">
11             body
12             {
13                 margin: 50px;
14             }
15             div
16             {
17                 display: list-item;
18                 list-style: url('support/green15x15.png') inside;
19             }
20         </style>
21     </head>
22     <body>
23         <p>Test passes if the first line of text has a green square bullet and the second line of text flows below that green square bullet.</p>
24         <div>
25             This is the first line of text.<br>
26             This is the second line of text.
27         </div>
28     </body>
29 </html>