tor-browser

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

table-column-rendering-003.xht (1875B)


      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 columns can induce a style on their cells</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="Table columns can induce a style (background-color) on the cells they occupy." />
      8         <style type="text/css">
      9             .table
     10             {
     11                 display: table;
     12             }
     13             .col
     14             {
     15                 display: table-column;
     16             }
     17             #test
     18             {
     19                 background: blue;
     20             }
     21             .tr
     22             {
     23                 display: table-row;
     24             }
     25             .td
     26             {
     27                 border: 1px solid black;
     28                 display: table-cell;
     29                 height: 2em;
     30                 width: 2em;
     31             }
     32         </style>
     33     </head>
     34     <body>
     35         <p>Test passes if the middle column of the three-by-three table below is blue.</p>
     36         <div class="table">
     37             <div class="col"></div>
     38             <div id="test" class="col"></div>
     39             <div class="col"></div>
     40             <div class="tr">
     41                 <div class="td"></div>
     42                 <div class="td"></div>
     43                 <div class="td"></div>
     44             </div>
     45             <div class="tr">
     46                 <div class="td"></div>
     47                 <div class="td"></div>
     48                 <div class="td"></div>
     49             </div>
     50             <div class="tr">
     51                 <div class="td"></div>
     52                 <div class="td"></div>
     53                 <div class="td"></div>
     54             </div>
     55         </div>
     56     </body>
     57  </html>