1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Z-index set to zero</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="flags" content="">
9 <meta name="assert" content="The property z-index with a zero value is read and applied as the value '0'.">
10 <style type="text/css">
11 #div1
12 {
13 background: red;
14 height: 1in;
15 left: 0;
16 position: absolute;
17 top: 0;
18 width: 1in;
19 z-index: 0;
20 }
21 #div2
22 {
23 background: green;
24 height: 1in;
25 left: 0;
26 position: absolute;
27 top: 0;
28 width: 1in;
29 }
30 #wrapper
31 {
32 position: relative;
33 }
34 </style>
35 </head>
36 <body>
37 <p>Test passes if there is no red visible on the page.</p>
38 <div id="wrapper">
39 <div id="div1"></div>
40 <div id="div2"></div>
41 </div>
42 </body>
43 </html>