list-style-position-005.xht (1223B)
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 (inside principal box) - block box in normal flow (as child of principal box)</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="Since a marker box is the first inline element in the principal box when 'list-style-position:inside', the following block box (in normal flow) must create a new stacking context below the marker box"/> 10 <style type="text/css"> 11 #test{ 12 background:lime; 13 color:lime; 14 display:list-item; 15 font-size:85px; 16 list-style-position:inside; 17 } 18 #test div{ 19 background:blue; 20 display:block; 21 } 22 </style> 23 </head> 24 25 <body> 26 <p>To pass, there <strong>must</strong> be a green bar stacked on top of a blue bar.</p> 27 <div id="test"> 28 <div> </div> 29 </div> 30 </body> 31 </html>