z-index-abspos-006.xht (1305B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: CSS: z-index and SELECT elements</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-07-03 --> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/z-index/006.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#z-index" /> 9 <link rel="help" href="http://www.w3.org/TR/CSS21/zindex.html#painting-order"/> 10 <style type="text/css"> 11 * { font: 1em serif; } 12 .a { position: absolute; z-index: 2; top: 2em; left: 2em; width: 13em; background: green; color: white; padding: 1em; } 13 .b { position: absolute; z-index: 1; top: 2.5em; left: 2.5em; background: red; color: yellow; height: 3em; } 14 </style> 15 </head> 16 <body> 17 <div class="test a"> There should be no red, nor any scroll bars, on this page. </div> 18 <select class="test b" size="3"> 19 <option>FAIL FAIL FAIL FAIL</option> 20 <option>FAIL FAIL FAIL FAIL</option> 21 <option>FAIL FAIL FAIL FAIL</option> 22 </select> 23 </body> 24 </html>