list-style-004

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

WeasyPrint

This browser

Assertion
The shorthand property 'list-style' applies 'list-style-type' 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-type 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="">
 9         <meta name="assert" content="The shorthand property 'list-style' applies 'list-style-type' 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: square inside;
19             }
20         </style>
21     </head>
22     <body>
23         <p>Test passes if the first line of text has a square bullet and the second line of text flows below that 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>