testing/web-platform/tests/css/css-masking/mask-image/mask-size-percent-percent-stretch.html
author Sandor Molnar <smolnar@mozilla.com>
Wed, 16 Jul 2025 08:01:46 +0300 (5 hours ago)
changeset 796723 8b0d004a4d3f03394d1e7072f95d95a65415a0dc
parent 603079 447f2d492945f876ceba80ec69643b2526753a01
permissions -rw-r--r--
Revert "Bug 1976137: apply code formatting via Lando" for causing build bustages @ Platform.cpp This reverts commit a2bbd0d672396015e05d323e236619a39b34570a. Revert "Bug 1976137 part 4: Remove DocAccessibleChild overrides of SendCaretMoveEvent and SendFocusEvent. r=eeejay" This reverts commit 102a35ed28b8cc8f3ed069ba46e8e1949a6348bf. Revert "Bug 1976137 part 3: Remove aCaretRect argument from PlatformCaretMoveEvent and PlatformFocusEvent. r=eeejay" This reverts commit b46aa6464fceaab0d48edada247983c6879e0c74. Revert "Bug 1976137 part 2: Move UpdateSystemCaretFor to Platform.cpp. r=eeejay" This reverts commit 21f1cfda868038cb85a01c45512699f4812b9045. Revert "Bug 1976137 part 1: Unify Windows AccessibleWrap::UpdateSystemCaretFor. r=eeejay" This reverts commit 05970d567b067b63a45659f56dd77d9190e5e7f7.
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>CSS Masking: mask-size: mask layer size</title>
    <link rel="author" title="Astley Chen" href="mailto:aschen@mozilla.com">
    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
    <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-mask-size">
    <link rel="match" href="mask-size-percent-percent-stretch-ref.html">
    <meta name="assert" content="Test checks whether sizing mask layer works correctly or not.">
    <style type="text/css">
      div {
        width: 60px;
        height: 120px;
      }

      #outer {
        border: 10px solid black;
      }

      #inner {
        background-color: purple;
        mask-image: url(support/transparent-100x50-blue-100x50.svg);
        mask-repeat: no-repeat;
        mask-position: left top;
        mask-size: 100% 100%;
      }
    </style>
  </head>
  <body>
    <div id="outer">
      <div id="inner"></div>
    </div>
  </body>
</html>