wpt / css / css-masking / mask-image / mask-position-8.html

Status: FAIL | Duration: 8ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-masking/mask-image/mask-position-8.html

<!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>

/css/css-masking/clip-path/reference/green-100x100.html

<!DOCTYPE html>
<div style="width: 100px; height: 100px; background-color: green"></div>