list-style-021.xht (1370B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Test: list-style: none - followed by a list-style-image reset</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style" title="12.5.1 list-style shorthand" /> 11 <link rel="help" href="http://www.w3.org/TR/CSS21/cascade.html#cascading-order" title="6.4.1 Cascading order" /> 12 <link rel="help" href="http://www.w3.org/TR/css-cascade-3/#cascading" /> 13 <link rel="help" href="http://www.w3.org/TR/css-cascade-4/#cascading" /> 14 <link rel="match" href="list-style-021-ref.xht" /> 15 16 <meta content="image" name="flags" /> 17 <meta content="A value of 'none' for the 'list-style' property sets both 'list-style-type' and 'list-style-image' to 'none'. If two declarations have the same weight, origin and specificity, then the latter specified wins." name="assert" /> 18 19 <style type="text/css"><![CDATA[ 20 body {margin-left: 100px;} 21 22 ul {list-style: none;} 23 24 ul {list-style-image: url("support/cat.png");} 25 ]]></style> 26 27 </head> 28 29 <body> 30 31 <p>Test passes if there is a <strong>cat image</strong>.</p> 32 33 <ul> 34 <li> </li> 35 </ul> 36 37 </body> 38 </html>