list-style-020

'list-style' shorthand and 'none' values

WeasyPrint

This browser

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' shorthand and 'none' values</title>
 5   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/">
 6   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#tokenization">
 7   <meta name="assert" content="">
 8   <style type="text/css">
 9     /* For better readability */
10     .li {
11       font-size: 1.5em;
12       color: blue;
13     }
14     span {
15       color: black;
16       font-size: 0.67em;
17       vertical-align: middle;
18       padding-left: 0.2em;
19     }
20 
21     .li {
22       display: list-item;
23       list-style: disc;
24       margin: 0.2em 0 0.2em 4em;
25     }
26     .inside span { border-left: solid thin orange; }
27     .outside { border-left: solid thin orange; }
28 
29     .one   { list-style: none; color: red; }
30     .two   { list-style: none none; color: red; }
31     .three { list-style: none square; }
32     .four  { list-style: square none; }
33     .five  { list-style: url(support/diamond.png) none; }
34     .six   { list-style: none url(support/diamond.png); }
35     .seven { list-style: none url(support/swatch-red.png) none;
36              list-style: url(support/swatch-red.png) none none;
37              list-style: none none url(support/swatch-red.png);
38              list-style: none square none;
39              list-style: square none none;
40              list-style: none none square;
41              list-style: square url(support/swatch-red.png) none;
42              list-style: url(support/swatch-red.png) none square;
43              list-style: none square url(support/swatch-red.png);
44            }
45 
46   </style>
47  </head>
48  <body>
49    <p>Test passes if each word on the right of the orange line
50     describes the shape on the left.</p>
51 
52    <div class="li one outside"><span>(nothing)</span></div>
53    <div class="li two outside"><span>(nothing)</span></div>
54    <div class="li three outside"><span>blue square</span></div>
55    <div class="li four outside"><span>blue square</span></div>
56    <div class="li five outside"><span>purple diamond</span></div>
57    <div class="li six outside"><span>purple diamond</span></div>
58    <div class="li seven outside"><span>blue circle</span></div>
59 
60  </body>
61 </html>