testing/web-platform/tests/css/css-masking/mask-image/mask-image-url-remote-mask.html
author Lando <lando@lando.test>
Fri, 11 Jul 2025 09:11:47 +0000 (3 hours ago)
changeset 796052 0a0cf87651274d2f86228467e41dafd62a510749
parent 435239 68592cefee573b075b68880e65828e820e2e16ed
permissions -rw-r--r--
Merge autoland to mozilla-central
<!DOCTYPE html>
<title>CSS Test: mask-image: url(remote.svg#mask)</title>
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#mask-layer-image">
<link rel="match" href="reference/mask-image-ref.html">
<meta name="assert" content="mask-image can use reference to a &lt;mask&gt; element from a remote SVG document">
<style>
#back {
  position: absolute;
  box-sizing: border-box;
  width: 200px;
  height: 200px;
  border: 60px solid green;
  background: red;
}
#front {
  position: absolute;
  box-sizing: border-box;
  width: 200px;
  height: 200px;
  border: 40px solid red;
  background: green;
  mask-image: url(support/mask.svg#mask);
}
</style>
<p>The test passes if there is a green square and no red below.</p>
<div id="back"></div><div id="front"></div>