testing/web-platform/tests/css/css-masking/mask-image/mask-clip-2-ref.html
author Makoto Kato <m_kato@ga2.so-net.ne.jp>
Mon, 14 Jul 2025 05:41:12 +0000 (11 hours ago)
changeset 796406 1e02bb4c2af2efa34f8335befa373d2b39383b02
parent 603079 447f2d492945f876ceba80ec69643b2526753a01
permissions -rw-r--r--
Bug 1973726 - Set DOM file path for webkitRelativePath. r=sefeng,geckoview-reviewers,webidl,smaug,ohall Actually, there is no way to set webkitRelativePath from JavaScript. Since GeckoView's folder picker handles virtual file data, we need to set relative path from JavaScript directly. A content URI of System storage document provider only allow file data access from file/folder picker, so there is no way to test it on geckoivew-junit. Also, after landing bug 1591640, GVE always crash when using folder picker. So this includes a fix for it. Differential Revision: https://phabricator.services.mozilla.com/D255615
<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
    <title>CSS mask-clip reference</title>
    <link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
    <style type="text/css">
      svg {
        position: absolute;
        top: 10px;
        border: 1px solid black;
      }
    </style>
  </head>
  <body>
    <svg width="200" height="200" style="left: 10px;">
      <rect x="20" y="20" width="100" height="100" fill="blue"/>
    </svg>
    <svg width="200" height="200" style="left: 220px;">
      <rect x="50" y="50" width="50" height="50" fill="blue"/>
    </svg>
    <svg width="200" height="200" style="left: 10px; top: 220px;">
      <rect x="50" y="50" width="50" height="50" fill="green"/>
      <rect x="60" y="60" width="40" height="40" fill="blue"/>
    </svg>
  </body>
</html>