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: Auto-imported from Gecko test 373379-1.html</title>
5 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes">
7 <meta name="flags" content="dom">
8
9 <style type="text/css">
10
11 #tablecell {
12 display: table-cell;
13 }
14 .border { border: 1px solid blue; }
15
16 </style>
17 </head>
18 <body>
19 <p>There should be no red below, except for antialiasing issues.</p>
20 <div style="position: relative; font-size: 2em;">
21 <div style="position: relative; z-index: 1; color: red; padding: 1px;">
22
23
24 <span class="border">
25 <span id="tablecell">x</span>
26 </span>
27
28 <script type="text/javascript">
29
30 document.body.offsetWidth;
31 document.getElementById("tablecell").removeAttribute("id");
32
33 </script>
34 </div>
35 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
36
37
38 <span class="border">
39 <span>x</span>
40 </span>
41
42 </div>
43 </div>
44 </body>
45 </html>