universal-selector-005

universal selector - list-style-image

WeasyPrint

This browser

Flags
image
Assertion
The universal selector matches the name of any element type. 'list-style-image' applies to elements with 'display: list-item'.

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: universal selector - list-style-image</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="author" title="Mark McKenzie-Bell" href="info(a)temerity.co.uk">
11   <link rel="author" title="Alexander Dawson" href="alexander_dawson(a)hotmail.com">
12   <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#universal-selector">
13   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-list-style-image">
14   <meta name="flags" content="image">
15   <meta name="assert" content="The universal selector matches the name of any element type. 'list-style-image' applies to elements with 'display: list-item'.">
16 
17   <style type="text/css">
18   body {margin-left: 100px;}
19   * {list-style-image: url("support/cat.png");}
20   </style>
21 
22  </head>
23 
24  <body>
25 
26   <p>Test passes if there is a <strong>cat image</strong>.</p>
27 
28   <ul>
29     <li>&nbsp;</li>
30   </ul>
31 
32  </body>
33 </html>