tor-browser

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

table-caption-001.xht (1432B)


      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: Table-caption</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#table-display" />
      7         <meta name="assert" content="An element with 'display: table-caption' is rendered as if it were a table caption." />
      8         <style type="text/css">
      9             .table
     10             {
     11                 display: table;
     12             }
     13             .caption
     14             {
     15                 display: table-caption;
     16             }
     17             .tr
     18             {
     19                 display: table-row;
     20             }
     21             .td
     22             {
     23                 background: black;
     24                 display: table-cell;
     25                 height: 3em;
     26                 width: 3em;
     27             }
     28         </style>
     29     </head>
     30     <body>
     31         <p>Test passes if the "Filler Text" is above the box.</p>
     32         <div class="table">
     33             <div class="caption">Filler Text</div>
     34             <div class="tr">
     35                 <div class="td"></div>
     36                 <div class="td"></div>
     37             </div>
     38             <div class="tr">
     39                  <div class="td"></div>
     40                  <div class="td"></div>
     41             </div>
     42         </div>
     43     </body>
     44 </html>