table-anonymous-objects-208

Auto-imported from Gecko test white-space-pre-1.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 white-space-pre-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       #x:after { content: " cd"; display: table-cell; }
11     </style>
12     <script type="text/javascript">
13       function doTest() {
14         var f = document.getElementById("f");
15         f.parentNode.removeChild(f);
16       }
17     </script>
18   </head>
19 <body onload="doTest()">
20 <p>There should be no red below, except for antialiasing issues.</p>
21 <div style="position: relative; font-size: 2em;">
22 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
23 
24     <div style="font-family: monospace; width: 10em; white-space: pre-wrap"><span id="f" style="float: left; width: 80%; height: 0.5em"></span><span id="x">a <script type="text/javascript">document.body.offsetWidth; dump('aa');</script> <span style="display: table-cell">b</span></span></div>
25   </div>
26 <div style="position: relative; z-index: 1; color: red; padding: 1px;">
27 
28     <div style="font-family: monospace; white-space: pre-wrap">a  b cd</div>
29   </div>
30 </div>
31 </body>
32 </html>