summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-masking/mask-image/mask-position-8.html
blob: cb99135fa1df5d8caa7cfec928a55bf738d78b8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!doctype html>
<title>CSS Masking: mask-position with overflowing mask-size on SVG content</title>
<link rel="help" href="https://drafts.fxtf.org/css-masking/#the-mask-position">
<link rel="match" href="../clip-path/reference/green-100x100.html">
<style>
  .mask {
    mask: linear-gradient(90deg, transparent 25%, black 25%, black 50%, transparent 50%) 50% / 200% 100%;
  }
</style>
<svg>
  <g class="mask">
    <rect width="100" height="100" fill="green"/>
    <rect x="100" width="100" height="100" fill="red"/>
  </g>
</svg>