tor-browser

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

fixed-table-layout-003d06.xht (1717B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 
      5  <head>
      6 
      7   <title>CSS Test: table-layout: fixed - cell in the first row with specified width</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#fixed-table-layout" />
     11   <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2011Oct/0502.html" title="[css21] Section 17.5.2.1 should be clarified" />
     12   <link rel="match" href="fixed-table-layout-003d02-ref.xht" />
     13 
     14   <meta name="assert" content="A cell in the first row with specified non-auto 'width' sets the width for its column in the absence of a column element with specified non-auto width. This test checks the 'border-collapse: collapse' model with one non-zero horizontal cell padding and with zero horizontal cell border." />
     15 
     16   <style type="text/css"><![CDATA[
     17   div, table {font: 1.25em/1.2 serif;}
     18 
     19   table
     20   {
     21   border-collapse: collapse;
     22   table-layout: fixed;
     23   width: 300px;
     24   }
     25 
     26   td
     27   {
     28   border: none;
     29   padding: 0px 0px 0px 120px;
     30   }
     31 
     32   td#tested-cell
     33   {
     34   background-color: blue;
     35   color: blue;
     36   width: 80px;
     37   }
     38 
     39   div#reference
     40   {
     41   background-color: black;
     42   color: black;
     43   margin-left: 50px;
     44   width: 200px;
     45   }
     46   ]]></style>
     47 
     48  </head>
     49 
     50  <body>
     51 
     52   <p>Test passes if the blue and black stripes are the <strong>same width</strong>.</p>
     53 
     54   <table>
     55 
     56    <col />
     57    <col />
     58    <col />
     59 
     60    <tr>
     61     <td></td>
     62     <td id="tested-cell">D06</td>
     63     <td></td>
     64    </tr>
     65 
     66   </table>
     67 
     68   <div id="reference">200px wide</div>
     69 
     70  </body>
     71 </html>