table-anonymous-objects-121

Auto-imported from Gecko test dynamic-removal-12.html

WeasyPrint

This browser

Flags
dom

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: Auto-imported from Gecko test dynamic-removal-12.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         t.parentNode.removeChild(t);
13         document.documentElement.className = "";
14       }
15     </script>
16   </head>
17 <body onload="doTest()">
18 <p>There should be no red below, except for antialiasing issues.</p>
19 <div style="position: relative; font-size: 2em;">
20 <div style="position: relative; z-index: 1; color: red; padding: 1px;">
21 
22     <div>
23       <span>a b</span><span id="t" style="display: table-row"></span><span>c d</span>
24     </div>
25   </div>
26 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
27 
28     a bc d
29   </div>
30 </div>
31 </body>
32 </html>