tor-browser

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

table-anonymous-block-002.xht (1662B)


      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 is not used for baseline vertical alignment</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="assert" content="The table box (and not anonymous containing block) is used for doing baseline vertical alignment for inline-table." />
      8         <style type="text/css">
      9             caption
     10             {
     11                 color: white;
     12             }
     13             #table
     14             {
     15                 background: black;
     16                 border-spacing: 0;
     17                 caption-side: bottom;
     18                 display: inline-table;
     19             }
     20             td
     21             {
     22                 padding: 0;
     23                 vertical-align: baseline;
     24             }
     25             div
     26             {
     27                 background: black;
     28             }
     29         </style>
     30     </head>
     31     <body>
     32         <p>Test passes if the bottoms of the two boxes are vertically aligned.</p>
     33         <table>
     34             <tr>
     35                 <td>
     36                     <table id="table">
     37                         <caption>XXXXXXXXX0</caption>
     38                         <tr>
     39                             <td>XXXXXXXXX0</td>
     40                         </tr>
     41                     </table>
     42                 </td>
     43                  <td>
     44                     <div>XXXXXXXXX0</div>
     45                 </td>
     46             </tr>
     47         </table>
     48     </body>
     49 </html>