summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/mask-type-04.svg
blob: ee46b5d57c35f90281aa2139cc866593cb3f4c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">

  <title>Testcase for alpha mask, dynamically setting mask-type</title>

  <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=793617 -->

  <mask id="m" maskContentUnits="objectBoundingBox">
    <rect x=".1" y=".1" width=".8" height=".8" fill="black" fill-opacity="0.5"/>
    <set attributeName="mask-type" to="alpha"/>
  </mask>
  <rect width="100" height="100" fill="blue" mask="url(#m)"/>
</svg>