list-style-image-005

CSS Lists: list-item with list-style-image

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: CSS Lists: list-item with list-style-image</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/list/007.html" type="text/html">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style">
 9   <style type="text/css">
10    div { margin: 0 0 0 20px; list-style-image: url(support/swatch-green.png); display: list-item; float: left; }
11   </style>
12  </head>
13  <body>
14   <p> There should be a green square (and the word 'TEST') below. </p>
15   <div>TEST</div>
16  </body>
17 </html>