list-style-position-022.xht (1424B)
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-position set to 'inherit'</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-position" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style" /> 8 <meta name="assert" content="The 'list-style-position' property set to 'inherit' retrieves its value from its parent element." /> 9 <style type="text/css"> 10 div 11 { 12 border: 1px solid blue; 13 list-style-position: inside; 14 padding-left: 50px; 15 } 16 span 17 { 18 display: list-item; 19 list-style-position: outside; 20 } 21 div span 22 { 23 list-style-position: inherit; 24 } 25 </style> 26 </head> 27 <body> 28 <p>Test passes if the second line of text in the blue box is shifted to the left and is underneath the bullet.</p> 29 <div> 30 <span> 31 Filler Text Filler Text Filler Text<br /> 32 Filler Text Filler Text Filler Text 33 </span> 34 </div> 35 </body> 36 </html>