z-index-018.xht (1188B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Test: z-index - negative values</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#z-index" /> 11 <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#numbers" /> 12 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> 13 14 <meta content="32bit" name="flags" /> 15 <meta content="Integers should range from -2,147,483,648 to 2,147,483,647 according to C Language Specification" name="assert" /> 16 17 <style type="text/css"><![CDATA[ 18 div 19 { 20 height: 100px; 21 position: absolute; 22 width: 100px; 23 } 24 25 #very-deep 26 { 27 background-color: red; 28 z-index: -2147483646; 29 } 30 31 #just-under-surface 32 { 33 background-color: green; 34 z-index: -1; 35 } 36 ]]></style> 37 38 </head> 39 40 <body> 41 42 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 43 44 <div id="just-under-surface"></div> 45 46 <div id="very-deep"></div> 47 48 </body> 49 </html>