-
Notifications
You must be signed in to change notification settings - Fork 230
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
Drop shadow with rgb color not working #727
Comments
The first one works just fine with the latest |
I guess https://github.com/yisibl/resvg-js using 0.34 is a problem then. I at least can't get it to work with But my source image also fails to generate a shadow in the svg version, unless I add the commas for rgba |
Commas are optional. It should work without them. |
Tested with latest version of the cli and it fails with
With this svg
|
Definitely a bug in |
Seems to be a bug in |
Here is the culprit: https://github.com/RazrFalcon/simplecss/blob/37ddffef48bd8597347284c94e219bd69263f316/src/lib.rs#L510-L514 We simply iterate until we find the first closing bracket, which won't work if they are nested... |
Please note that even in CSS Color Level 4, However, when submitting an issue to resvg, please use the color syntax from CSS Color Level 3. I even recommend always prioritizing Color Level 3 syntax in SVG because it has better compatibility. |
@LaurenzV Yeah... it's a CSS2 parser for a reason. Will see how to fix it. |
As a hotfix you can use |
Hey, I'm trying to use a drop shadow in a style element like
or even better
But when converting from svg to png via resvg the shadows are lost
It should be reproduceable with
thx/resvg-js#317
The text was updated successfully, but these errors were encountered: