tor-browser

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

fixed-table-layout-003a02.xht (1738B)


      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-003a02-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 symetrical 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-spacing: 0px;
     22   border-collapse: separate;
     23   table-layout: fixed;
     24   width: 300px;
     25   }
     26 
     27   td
     28   {
     29   border: none;
     30   padding: 0px 60px;
     31   }
     32 
     33   td#tested-cell
     34   {
     35   background-color: blue;
     36   color: blue;
     37   width: 80px;
     38   }
     39 
     40   div#reference
     41   {
     42   background-color: black;
     43   color: black;
     44   margin-left: 50px;
     45   width: 200px;
     46   }
     47   ]]></style>
     48 
     49  </head>
     50 
     51  <body>
     52 
     53   <p>Test passes if the blue and black stripes are the <strong>same width</strong>.</p>
     54 
     55   <table>
     56 
     57    <col />
     58    <col />
     59    <col />
     60 
     61    <tr>
     62     <td></td>
     63     <td id="tested-cell">A02</td>
     64     <td></td>
     65    </tr>
     66 
     67   </table>
     68 
     69   <div id="reference">200px wide</div>
     70 
     71  </body>
     72 </html>