tor-browser

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

fixed-table-layout-003c08.xht (1822B)


      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-003c08-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: separate' model with zero horizontal cell padding and with non-zero asymetrical horizontal cell borders." />
     15 
     16   <style type="text/css"><![CDATA[
     17   div, table {font: 1.25em/1.2 serif;}
     18 
     19   table
     20   {
     21   border-spacing: 0px;
     22   border-collapse: separate;
     23   table-layout: fixed;
     24   width: 300px;
     25   }
     26 
     27   td {padding: 0px;}
     28 
     29   td#tested-cell
     30   {
     31   background-color: blue;
     32   border-left: orange solid 32px;
     33   border-right: orange solid 88px;
     34   color: blue;
     35   width: 80px;
     36   }
     37 
     38   div#reference
     39   {
     40   background-color: black;
     41   color: black;
     42   margin-left: 50px;
     43   width: 200px;
     44   }
     45   ]]></style>
     46 
     47  </head>
     48 
     49  <body>
     50 
     51   <p>Test passes if the 2 orange slivers and blue stripe are as a whole <strong>exactly as wide as</strong> the black stripe.</p>
     52 
     53   <table>
     54 
     55    <col />
     56    <col />
     57    <col />
     58 
     59    <tr>
     60     <td></td>
     61     <td id="tested-cell">C08</td>
     62     <td></td>
     63    </tr>
     64 
     65   </table>
     66 
     67   <div id="reference">200px wide</div>
     68 
     69  </body>
     70 </html>