-
Notifications
You must be signed in to change notification settings - Fork 243
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
Transparent linear gradient rendered incorrectly #594
Comments
Ran into this as well — a workaround like |
It makes it better but it lightens it up more than ideal. |
I thought this wasn't spec, but it is actually spec nowadays: |
Has anyone found a work around for this? I find this is also not working for radial-gradient either. |
Update: Seems like a tricky issue with how Satori is generating the SVG based on the CSS gradient provided. I'm no SVG expert to know what exactly is causing the issue (inaccurate transformation, rendering issue, or both). You can view the Satori SVG output though, which is helpful for debugging. I worked around it by constructing my own (simpler) SVG manually and then passing that into Satori itself. 🤙 |
Bug report
Description / Observed Behavior
When using a linear gradient with transparent, it's not actually transparent, it's just black.
Expected Behavior
This css -
backgroundImage: 'linear-gradient(transparent, transparent, white)',
should render from transparent directly to white. Instead it renders from dark gray to white.This is the expected behavior: https://codepen.io/bdlowery/pen/dyrrjgW
Reproduction
Reproduction link
The text was updated successfully, but these errors were encountered: