tor-browser

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

collapsing-border-model-002.xht (1632B)


      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: Collapsing borders model row width equation (auto layout) - subsequent rows with wider borders variation</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#collapsing-borders" />
      7         <meta name="assert" content="Rows which have wider borders than those of the first table row have their borders spill into the table margins." />
      8         <style type="text/css">
      9             table
     10             {
     11                 border: 10px solid red;
     12                 border-collapse: collapse;
     13                 margin: 15px;
     14             }
     15             td
     16             {
     17                 background: blue;
     18                 border: 20px solid blue;
     19                 padding: 20px;
     20             }
     21             .cell
     22             {
     23                 border: 50px solid black;
     24             }
     25             div
     26             {
     27                 background: blue;
     28                 position: absolute;
     29             }
     30         </style>
     31     </head>
     32     <body>
     33         <p>Test passes if the top and bottom blue boxes are the same width as the black box, and there is no red visible on the page.</p>
     34         <div>
     35         <table>
     36             <tr>
     37                 <td></td>
     38                 <td></td>
     39             </tr>
     40             <tr>
     41                 <td class="cell"></td>
     42                 <td class="cell"></td>
     43             </tr>
     44         </table>
     45         </div>
     46     </body>
     47 </html>