list-style-019

list-style - initial value

WeasyPrint

This browser

Flags
image
Assertion
'list-style' property is a shorthand notation that sets the three properties 'list-style-type', 'list-style-image' and 'list-style-position'. If one of the 3 list-style properties is not specified explicitly, then such 'list-style' property is assigned its initial value as indicated in its property definition.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3 
 4  <head>
 5 
 6   <title>CSS Test: list-style - initial value</title>
 7 
 8   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
 9   <link rel="author" title="James Hopkins" href="james(a)idreamincode.co.uk">
10   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style">
11   <link rel="help" href="http://www.w3.org/TR/CSS21/about.html#shorthand">
12   <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#specified-value">
13   <meta content="image" name="flags">
14   <meta content="'list-style' property is a shorthand notation that sets the three properties 'list-style-type', 'list-style-image' and 'list-style-position'. If one of the 3 list-style properties is not specified explicitly, then such 'list-style' property is assigned its initial value as indicated in its property definition." name="assert">
15 
16   <style type="text/css">
17   li
18   {
19   list-style-image: url("support/swatch-red.png");
20   list-style: decimal inside;
21   }
22   </style>
23 
24  </head>
25 
26  <body>
27 
28   <p>Test passes if there is "1." and <strong>no red</strong>.</p>
29 
30   <ul>
31     <li>&nbsp;</li>
32   </ul>
33 
34  </body>
35 </html>