tor-browser

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

subpixel-collapsed-borders-002.html (862B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
      3 <link rel="help" href="https://www.w3.org/TR/CSS22/tables.html#collapsing-borders">
      4 <link rel="help" href="https://drafts.csswg.org/css-tables-3/#border-conflict-resolution-algorithm">
      5 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/606">
      6 <link rel="match" href="subpixel-collapsed-borders-ref.html">
      7 <meta name="assert" content="When collapsed border tables have border widths larger than cells', the table border wins even when the cell border is merely 0.01 pixels narrower" />
      8 
      9 <style>
     10 table {
     11  border: 5px solid green;
     12  border-collapse: collapse;
     13 }
     14 
     15 td {
     16  width: 50px;
     17  height: 50px;
     18  border: 4.99px solid red;
     19 }
     20 </style>
     21 
     22 <p>There should be a square with a green border, not a red border.
     23 </p>
     24 
     25 <table>
     26  <tr>
     27    <td></td>
     28  </tr>
     29 </table>