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 208305-4.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 id="s" type="text/css">
10 span { display: table-cell ! important }
11 </style>
12 <script type="text/javascript">
13 function doTest() {
14 var s = document.getElementById("s");
15 s.disabled = true;
16 document.body.offsetWidth;
17 s.disabled = false;
18 document.documentElement.className = "";
19 }
20 </script>
21 </head>
22 <body onload="doTest()">
23 <p>There should be no red below, except for antialiasing issues.</p>
24 <div style="position: relative; font-size: 2em;">
25 <div style="position: relative; z-index: 1; color: red; padding: 1px;">
26
27 <span style="display: block">a b</span>
28 <span style="display: block">c d</span>
29 </div>
30 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
31
32 a bc d
33 </div>
34 </div>
35 </body>
36 </html>