1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html lang="en">
3 <head>
4 <title>CSS Test: Absolute Positioning: width:auto with table width:100%</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/absolute/width/001.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width">
8 <style type="text/css">
9 p { color: green; }
10 div { position: absolute; }
11 td { background: red; height: 2em; padding: 0; }
12 .a { top: 4em; }
13 .b { top: 8em; }
14 .b table { width: 100%; }
15 </style>
16 </head>
17 <body>
18 <p>There should be no red on this page.</p>
19 <!-- both should shrink wrap to 0, and 100% of 0 is 0. -->
20 <div class="a"> <table> <tr> <td> </td> </tr> </table> </div>
21 <div class="b"> <table> <tr> <td> </td> </tr> </table> </div>
22 </body>
23 </html>