tor-browser

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

table-cell-width.html (659B)


      1 <link rel="match" href="table-cell-width-ref.html">
      2 <style>
      3 body {
      4  margin: 0;
      5 }
      6 
      7 table {
      8  width: 400px;
      9  border-collapse: collapse;
     10 }
     11 
     12 th {
     13  font-weight: normal;
     14  text-align: left;
     15 }
     16 
     17 td, th {
     18  padding: 0;
     19 }
     20 
     21 td:first-child, th:first-child {
     22  background-color: red;
     23 }
     24 </style>
     25 
     26 <!-- width=0 should be treated as 'auto' -->
     27 <table>
     28  <tr>
     29    <th width=0>a</th>
     30    <th>a</th>
     31  </tr>
     32 </table>
     33 
     34 <table>
     35  <tr>
     36    <td width=0>a</td>
     37    <td>a</td>
     38  </tr>
     39 </table>
     40 
     41 <!-- test valid width attribute value-->
     42 <table>
     43  <tr>
     44    <th width=100>a</th>
     45    <th>a</th>
     46  </tr>
     47 </table>
     48 
     49 <table>
     50  <tr>
     51    <td width=100>a</td>
     52    <td>a</td>
     53  </tr>
     54 </table>