tor-browser

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

caption-vs-table-box-001.xht (1559B)


      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: Caption border and table border</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="A caption has padding, margin and borders independent of those of its parent table." />
      8         <style type="text/css">
      9             #table, #caption
     10             {
     11                 border: 1px solid black;
     12                 padding: 1em;
     13             }
     14             #caption, #cell
     15             {
     16                 height: 4em;
     17                 width: 4em;
     18             }
     19             #table
     20             {
     21                 display: table;
     22                 margin-top: 1em;
     23             }
     24             #caption
     25             {
     26                 display: table-caption;
     27                 margin-bottom: 1em;
     28             }
     29             #row
     30             {
     31                 display: table-row;
     32             }
     33             #cell
     34             {
     35                 display: table-cell;
     36             }
     37         </style>
     38     </head>
     39     <body>
     40         <p>Test passes if there are two separate boxes below and the "Filler Text" inside the boxes has the same alignment.</p>
     41         <div id="table">
     42             <div id="caption">Filler Text</div>
     43             <div id="row">
     44                 <div id="cell">Filler Text</div>
     45            </div>
     46         </div>
     47     </body>
     48 </html>