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