list-style-image-005.xht (1049B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 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="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-03-06 --> 8 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/list/007.html" type="text/html"/> 9 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style" /> 10 <link rel="match" href="list-style-image-005-ref.xht" /> 11 12 <style type="text/css"> 13 div { margin: 0 0 0 20px; list-style-image: url(support/swatch-green.png); display: list-item; float: left; } 14 </style> 15 </head> 16 <body> 17 <p> There should be a green square (and the word 'TEST') below. </p> 18 <div>TEST</div> 19 </body> 20 </html>