mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
4e9e183a34
This fixes the painting of an SVG on https://discord.com/.
11 lines
460 B
HTML
11 lines
460 B
HTML
<link rel="match" href="reference/simple-svg-mask-ref.html" />
|
|
<svg width="120" viewBox="-10 -10 120 120">
|
|
<defs>
|
|
<mask id="myMask" 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>
|