Tests/LibWeb: Add ref test for an SVG mask with mask-type: alpha

This commit is contained in:
MacDue 2023-10-07 21:01:10 +01:00 committed by Andreas Kling
parent 92fc426562
commit e9fd7c96af

View file

@ -0,0 +1,11 @@
<link rel="match" href="reference/simple-svg-mask-ref.html" />
<svg width="200" viewBox="-10 -10 120 120">
<defs>
<mask id="myMask" style="mask-type:alpha">
<!-- Everything solid pixel (alpha=255) will be visible -->
<rect x="50" y="0" width="50" height="100" fill="black" />
</mask>
</defs>
<rect x="-10" y="-10" width="120" height="120" fill="blue" />
<rect x="10" y="10" width="80" height="80" fill="red" mask="url(#myMask)" />
</svg>