z-index-applies-to-011.xht (1285B)
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: Z-index applied to element with 'display' set to run-in</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-z-index" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#z-index" /> 8 <meta name="assert" content="The 'z-index' property applies to elements with a display of run-in." /> 9 <style type="text/css"> 10 #div2 11 { 12 background: green; 13 display: run-in; 14 z-index: 1; 15 } 16 #zindex 17 { 18 background: red; 19 top: -1in; 20 } 21 #div2, #zindex 22 { 23 height: 1in; 24 position: relative; 25 width: 1in; 26 } 27 </style> 28 </head> 29 <body> 30 <p>Test passes if there is no red visible on the page.</p> 31 <div> 32 <div id="div2"><div></div></div> 33 <div id="zindex"></div> 34 </div> 35 </body> 36 </html>