z-index-009.xht (1780B)
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 set maximum value minus 1</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-07-03 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-z-index" /> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#z-index" /> 9 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> 10 11 <meta name="flags" content="32bit may" /> 12 <meta name="assert" content="The property z-index set to a maximum value minus 1 for a 32-bit integer is correctly handled." /> 13 <style type="text/css"> 14 #div1 15 { 16 background: green; 17 height: 100px; 18 left: 0; 19 position: absolute; 20 top: 0; 21 width: 100px; 22 z-index: 2147483646; 23 } 24 #div2 25 { 26 background: red; 27 height: 100px; 28 left: 0; 29 position: absolute; 30 top: 0; 31 width: 100px; 32 z-index: 100; 33 } 34 #wrapper 35 { 36 position: relative; 37 } 38 </style> 39 </head> 40 <body> 41 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 42 <div id="wrapper"> 43 <div id="div1"></div> 44 <div id="div2"></div> 45 </div> 46 </body> 47 </html>