tor-browser

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

table-cell-width-s.html (675B)


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