lists-backgrounds-001.xht (1148B)
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 with background applied</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#lists" /> 7 <meta name="assert" content="Background properties only apply to the principal box and not the marker box when the marker is set to outside." /> 8 <style type="text/css"> 9 #div1 10 { 11 background: orange; 12 margin-left: 50px; 13 padding-left: 30px; 14 } 15 div div 16 { 17 display: list-item; 18 list-style-type: disc; 19 background: blue; 20 } 21 </style> 22 </head> 23 <body> 24 <p>Test passes if the text has a blue background and the marker has an orange background.</p> 25 <div id="div1"> 26 <div>This text should have a blue background</div> 27 </div> 28 </body> 29 </html>