list-style-017

List-style inheriting two values

WeasyPrint

This browser

Assertion
The shorthand property 'list-style' set to 'inherit' inherits two values from the parent.

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 inheriting two 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' set to 'inherit' inherits two values from the parent.">
10         <style type="text/css">
11             body
12             {
13                 margin: 50px;
14             }
15             div
16             {
17                 list-style: square inside;
18             }
19             span
20             {
21                 display: list-item;
22                 list-style: disc outside;
23             }
24             div span
25             {
26                 list-style: inherit;
27             }
28         </style>
29     </head>
30     <body>
31         <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>
32         <div>
33             <span>
34                 This is the first line of text.<br>
35                 This is the second line of text.
36             </span>
37         </div>
38     </body>
39 </html>