z-index-applies-to-003

Z-index applied to element with 'display' set to 'table-footer-group'

WeasyPrint

This browser

Flags
may
Assertion
The 'z-index' property can apply to elements with a display of 'table-footer-group'.

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 applied to element with 'display' set to 'table-footer-group'</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="may">
 9         <meta name="assert" content="The 'z-index' property can apply to elements with a display of 'table-footer-group'.">
10         <style type="text/css">
11             #test
12             {
13                 background: green;
14                 display: table-footer-group;
15                 z-index: 1;
16             }
17             #table
18             {
19                 display: table;
20                 table-layout: fixed;
21             }
22             #row
23             {
24                 display: table-row;
25             }
26             #cell
27             {
28                 display: table-cell;
29             }
30             #zindex
31             {
32                 background: yellow;
33                 top: -1in;
34             }
35             #test, #zindex
36             {
37                 position: relative;
38             }
39             #cell, #zindex
40             {
41                 height: 1in;
42                 width: 1in;
43             }
44         </style>
45     </head>
46     <body>
47         <p>Test passes if there is a green or yellow box below.</p>
48         <div id="table">
49             <div id="test">
50                 <div id="row">
51                     <div id="cell"></div>
52                 </div>
53             </div>
54         </div>
55         <div id="zindex"></div>
56     </body>
57 </html>