z-index-018

z-index - negative values

WeasyPrint

This browser

Flags
32bit
Assertion
Integers should range from -2,147,483,648 to 2,147,483,647 according to C Language Specification

Source

 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   #just-under-surface
29   {
30   background-color: green;
31   z-index: -1;
32   }
33   </style>
34 
35  </head>
36 
37  <body>
38 
39   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
40 
41   <div id="just-under-surface"></div>
42 
43   <div id="very-deep"></div>
44 
45  </body>
46 </html>