tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

abspos-010.xht (1106B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4   <title>CSS Test: Absolutely positioned tables must shrink wrap</title>
      5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
      6   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"/>
      7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/013.html" type="text/html"/>
      8   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width"/>
      9   <style type="text/css">
     10    table { position: absolute; background: red; border-spacing: 0; padding: 0;}
     11    td { padding: 0; }
     12    div { width: 3em; height: 2em; background: green; }
     13    .fixed { table-layout: fixed; margin-top: 2em; }
     14   </style>
     15  </head>
     16  <body>
     17   <p>There should be a green block and no red below.</p>
     18   <table>
     19    <tr>
     20     <td>
     21      <div></div>
     22     </td>
     23    </tr>
     24   </table>
     25   <table class="fixed">
     26    <tr>
     27     <td>
     28      <div></div>
     29     </td>
     30    </tr>
     31   </table>
     32 
     33 
     34 </body>
     35 </html>