list-style-position-001.xht (1276B)
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 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 5 <title>CSS Test: Marker box position - first-child block box with 'overflow'</title> 6 <link rel="author" title="James Hopkins" href="http://idreamincode.co.uk/css21testsuite"/> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#list-style"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#block-boxes"/> 9 <meta name="assert" content="The position of a first-child block box inside a principal box must not be affected by 'overflow' being applied to the first-child, when marker box is positioned outside the principal box"/> 10 <style type="text/css"> 11 #test{ 12 background:red; 13 display:list-item; 14 font-size:85px; 15 margin:50px; 16 } 17 #test div{ 18 background:lime; 19 overflow:auto; 20 } 21 </style> 22 </head> 23 24 <body> 25 <p>To pass, there <strong>must</strong> be a bullet (filled-in circle) visible which <strong>should</strong> appear alongside the green bar to the left, and there <strong>must not</strong> not be any red in this page.</p> 26 <div id="test"> 27 <div> </div> 28 </div> 29 </body> 30 </html>