list-style-017.xht (1391B)
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: List-style inheriting two values</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-list-style" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style" /> 8 <meta name="assert" content="The shorthand property 'list-style' set to 'inherit' inherits two values from the parent." /> 9 <style type="text/css"> 10 body 11 { 12 margin: 50px; 13 } 14 div 15 { 16 list-style: square inside; 17 } 18 span 19 { 20 display: list-item; 21 list-style: disc outside; 22 } 23 div span 24 { 25 list-style: inherit; 26 } 27 </style> 28 </head> 29 <body> 30 <p>Test passes if the first line of text has a square bullet and the second line of text flows below that square bullet.</p> 31 <div> 32 <span> 33 This is the first line of text.<br /> 34 This is the second line of text. 35 </span> 36 </div> 37 </body> 38 </html>