abspos-027

Absolutely positioned elements must shrink wrap tables

WeasyPrint

This browser

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: Absolutely positioned elements must shrink wrap tables</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/table/positioning/003.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo">
 8   <style type="text/css">
 9    .test { position: absolute; background: red; }
10    table { background: white; color: green; margin: auto; }
11   </style>
12  </head>
13  <body>
14   <div class="test">
15    <table>
16     <tr>
17      <td>There should be no red on this page.</td>
18     </tr>
19    </table>
20   </div>
21  </body>
22 </html>