table-anonymous-objects-039

Auto-imported from Gecko test 363326-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 
 5   <title>CSS Test: Auto-imported from Gecko test 363326-1.html</title>
 6   <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes">
 8   <meta name="flags" content="dom">
 9 </head>
10 <body>
11 <p>There should be no red below, except for antialiasing issues.</p>
12 <div style="position: relative; font-size: 2em;">
13 <div style="position: relative; z-index: 1; color: red; padding: 1px;">
14 
15 
16 <div style="display: table; width: 500px">
17   <div style="float: right; width: 100px">one<script type="text/javascript">var foo = document.body.offsetWidth;</script></div>
18   <div style="float:left; width: 100px">two</div>
19 </div>
20 
21 </div>
22 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
23 
24 
25 <div style="display: table; width: 500px">
26   <div style="display: table-cell">
27     <div style="float: right; width: 100px">one</div>
28     <div style="float:left; width: 100px">two</div>
29   </div>
30 </div>
31 
32 </div>
33 </div>
34 </body>
35 </html>