tor-browser

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

table-anonymous-block-015.xht (1366B)


      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 table percentage height</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="Percentage height of table is relative to its anonymous box's containing block." />
      8         <style type="text/css">
      9             #div1
     10             {
     11                 height: 400px;
     12             }
     13             #div2
     14             {
     15                 background: blue;
     16                 float: left;
     17                 height: 200px;
     18                 width: 1ex;
     19             }
     20             table
     21             {
     22                 border-spacing: 0;
     23                 height: 50%;
     24             }
     25             td
     26             {
     27                 background: black;
     28                 padding: 0;
     29             }
     30         </style>
     31     </head>
     32     <body>
     33         <p>Test passes if the boxes below are the same height.</p>
     34         <div id="div1">
     35             <div id="div2"></div>
     36             <table>
     37                 <tr>
     38                     <td>X</td>
     39                 </tr>
     40             </table>
     41         </div>
     42     </body>
     43 </html>