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 white-space-25.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 <script type="text/javascript">
10 function doTest() {
11 var t = document.getElementById("t");
12 var parent = t.parentNode;
13 parent.insertBefore(document.createTextNode(" "), t);
14 parent.insertBefore(document.createTextNode("bc"), t);
15 parent.insertBefore(document.createTextNode(" "), t);
16 document.documentElement.className = "";
17 }
18 </script>
19 </head>
20 <body onload="doTest()">
21 <p>There should be no red below, except for antialiasing issues.</p>
22 <div style="position: relative; font-size: 2em;">
23 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
24
25 <span style="display:table-row; white-space: pre"><span style="display: table-cell">a</span><span id="t" style="display: table-cell">d</span></span>
26 </div>
27 <div style="position: relative; z-index: 1; color: red; padding: 1px;">
28
29 a bc d
30 </div>
31 </div>
32 </body>
33 </html>