testing/web-platform/tests/css/css-masking/clip-path/reference/clip-path-path-001-ref.html
author Sotaro Ikeda <sotaro.ikeda.g@gmail.com>
Thu, 10 Jul 2025 00:10:09 +0000 (9 hours ago)
changeset 795941 23763b72c35abeead04f63e4503c28abc73d065d
parent 761325 d633e26195b4291a4a6761fd5fecda9917e432df
permissions -rw-r--r--
Bug 1976135 - Remove nightly only limitation of pref gfx.webrender.layer-compositor r=gfx-reviewers,gw Differential Revision: https://phabricator.services.mozilla.com/D256379
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE html>
<html>
<head>
  <title>CSS Masking: Reference for clip-path's path function with nonzero</title>
  <style type="text/css">
    #rect {
      width: 100px;
      height: 100px;
      background-color: green;
      clip-path: url("#clip");
    }
  </style>
</head>
<body>
  <p>The test passes if there is a green filled rect.</p>
  <div id="rect"></div>
  <svg height="0" width="0">
    <defs>
      <clipPath id="clip">
        <path clip-rule="nonzero" d="M10,10h80v80h-80zM25,25h50v50h-50z"/>
      </clipPath>
    </defs>
  </svg>
</body>
</html>