tor-browser

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

table-anonymous-block-011.xht (1899B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3     <head>
      4         <title>CSS Test: The anonymous block box around a table - table top margin is collapsed with caption top margin</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#model" />
      7         <meta name="flags" content="ahem" />
      8         <meta name="assert" content="The top margin of the table caption is not collapsed with top margin of the table." />
      9         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10         <style type="text/css">
     11             #div1
     12             {
     13                 border-top: 1em solid black;
     14                 width: 10em;
     15             }
     16             #div2
     17             {
     18                 background: blue;
     19                 height: 10em;
     20                 position: relative;
     21                 top: -4em;
     22                 width: 10em;
     23             }
     24             table
     25             {
     26                  border-spacing: 0;
     27                  font: 1em/1 Ahem;
     28                  margin-top: 2em;
     29             }
     30             caption
     31             {
     32                 background: red;
     33                 color: red;
     34                 margin-top: 2em;
     35             }
     36             td
     37             {
     38                 background: red;
     39                 color: red;
     40                 padding: 0;
     41             }
     42         </style>
     43     </head>
     44     <body>
     45         <p>Test passes if there are only two boxes below and there is space between the black box and the blue box.</p>
     46         <div id="div1">
     47             <table>
     48                 <caption>Filler Text</caption>
     49                 <tr>
     50                     <td>Filler Text</td>
     51                 </tr>
     52             </table>
     53             <div id="div2"></div>
     54         </div>
     55     </body>
     56 </html>