testing/web-platform/tests/css/css-position/sticky/position-sticky-table-td-subpixel-zoom.html
author Lando <lando@lando.test>
Fri, 11 Jul 2025 16:34:42 +0000 (2 hours ago)
changeset 796119 507aed88eb5a92e2e77286f3242050fac00a8201
parent 784371 f798216c6072081459f4a754b20277ac9ae74a54
permissions -rw-r--r--
Merge autoland to mozilla-central
<!DOCTYPE html>
<!-- Passes if a black transparent rectangle is painted with 1px borders. -->
<html style="zoom: 1.5625; overflow:hidden;">
  <link rel="help" href="https://www.w3.org/TR/css-position-3/#sticky-pos" />
  <meta name="assert" content="Position sticky pixel-snaps correctly under zoom" />
  <link rel="match" href="position-sticky-table-td-subpixel-zoom-ref.html" />

  <style>
    table {
      border-spacing: 0; width:200px;}
    tr {
      top: 0; position: sticky;
    }
    td {
      border: 1px solid black;
      width: 100px;
      height: 20px;
    }
    div::-webkit-scrollbar {
      display: none;
    }
    div {
      height:100px;
      overflow:auto;
    }
  </style>

  <div style="">
    <table>
      <tr>
        <td style="";></td>
      </tr>
    </table>
    <div style="height: 1000px;"></div>
  </div>
</html>