tor-browser

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

table-header-group-003.xht (2040B)


      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 header group and top captions</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="A table-header-group element is placed after any top captions." />
      8         <style type="text/css">
      9             .table
     10             {
     11                 display: table;
     12             }
     13             .caption
     14             {
     15                 border: 1px solid black;
     16                 background: orange;
     17                 caption-side: top;
     18                 color: orange;
     19                 display: table-caption;
     20                 height: 4em;
     21                 width: 4em;
     22             }
     23             #thead
     24             {
     25                 display: table-header-group;
     26                 background: blue;
     27             }
     28             #tbody
     29             {
     30                 display: table-row-group;
     31                 background: orange;
     32             }
     33             .tr
     34             {
     35                 display: table-row;
     36             }
     37             .td
     38             {
     39                 display: table-cell;
     40                 border: 1px solid black;
     41                 height: 4em;
     42                 width: 4em;
     43             }
     44         </style>
     45     </head>
     46     <body>
     47         <p>Test passes if the blue square below is stacked beneath either one or two orange squares and has one orange square underneath it.</p>
     48         <div class="table">
     49             <div id="tbody">
     50                 <div class="tr">
     51                      <div class="td"></div>
     52                 </div>
     53             </div>
     54             <div id="thead">
     55                 <div class="tr">
     56                      <div class="td"></div>
     57                 </div>
     58             </div>
     59             <div class="caption"></div>
     60             <div class="caption"></div>
     61         </div>
     62     </body>
     63 </html>