z-index-019.xht (1157B)
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 #at-surface 32 { 33 background-color: green; 34 } 35 ]]></style> 36 37 </head> 38 39 <body> 40 41 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 42 43 <div id="at-surface"></div> 44 45 <div id="very-deep"></div> 46 47 </body> 48 </html>