tor-browser

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

table-element-001.html (960B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: aspect-ratio shouldn't apply to internal table boxes</title>
      3 <link rel="author" title="mozilla" href="https://www.mozilla.org/">
      4 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
      5 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
      6 <style>
      7 table {
      8  border-collapse: collapse;
      9 }
     10 th, td {
     11  padding: 0px;
     12 }
     13 </style>
     14 
     15 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     16 
     17 <!-- aspect-ratio shouldn't apply to internal table boxes -->
     18 <table>
     19  <tr>
     20    <th style='background: green; width: 100px; aspect-ratio: 1/1;'></th>
     21    <td style='background: red; height: 50px; aspect-ratio: 4/1;'></td>
     22    <td style='background: red; height: 50px; min-width: min-content; aspect-ratio: 4/1;'></td>
     23  </tr>
     24 </table>
     25 <!-- aspect-ratio should apply to the table element -->
     26 <table style='background: green; width: 100px; aspect-ratio: 2/1;'></table>