z-index-002

Z-index set to minimum value

WeasyPrint

This browser

Flags
32bit, may
Assertion
The property z-index set to a minimum value for a 32-bit integer is correctly handled.

Source

 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 minimum value</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="32bit may">
 9         <meta name="assert" content="The property z-index set to a minimum value for a 32-bit integer is correctly handled.">
10         <style type="text/css">
11             #div1
12             {
13                 background: green;
14                 height: 1in;
15                 left: 0;
16                 position: absolute;
17                 top: 0;
18                 width: 1in;
19                 z-index: -100;
20             }
21             #div2
22             {
23                 background: red;
24                 height: 1in;
25                 left: 0;
26                 position: absolute;
27                 top: 0;
28                 width: 1in;
29                 z-index: -2147483648;
30             }
31             #wrapper
32             {
33                 position: relative;
34             }
35         </style>
36     </head>
37     <body>
38         <p>Test passes if there is no red visible on the page.</p>
39         <div id="wrapper">
40             <div id="div1"></div>
41             <div id="div2"></div>
42         </div>
43     </body>
44 </html>