-
-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't handle the mask-type property on <mask> #336
Comments
Hello @pranaygp, |
Yeah that seems odd because Figma generates them and chrome seems to respect them (tested by manually adding It does break Figma exports though. Probably best not to worry about it in svgr |
@gregberge Is it an issue with |
Spec: https://drafts.fxtf.org/css-masking/#the-mask-type The mask-type is in compliance with the specification, please reopen this question. |
Hi @yisibl, thanks you for pointing it out. I don't know where it breaks but I am pretty sure it is not in SVGR itself. Could someone investigate it? |
resvg supports the mask-type attribute as of v0.32.0. linebender/resvg#582 |
🐛 Bug Report
If an svg has a
<mask>
with amask-type
attribute, themask-type
just gets dropped, resulting in an incorrect image.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Workaround
I fixed this by manually adding in
style={{ maskType: "alpha" }}
to the generated react component. so my mask now looks like:The text was updated successfully, but these errors were encountered: