-
Notifications
You must be signed in to change notification settings - Fork 142
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
[BATIK-1285] offset should be set to 0 if this attribute is missing in stop tag #20
base: main
Are you sure you want to change the base?
Conversation
Can you add the jira id here |
…ik#20 GitOrigin-RevId: add90b75d468944bda7a9175547d625fae039d31
This problem is still affecting the library, even more now with an increased usage of Figma. |
Any updates? @simonsteiner1984 Could you merge the fix please? |
Can you add a unit test |
@simonsteiner1984 Sorry, but what kind of test is needed? We need to check what? Bug was reported three years ago and there is no any messages about unit test. I think if you texted about message early author of issue did it. @bulenkov Excuse me, is it possible for you to continue to fix the bug? |
It would be a test run thru junit |
https://issues.apache.org/jira/browse/BATIK-1285
Many modern design tools like Figma and others do not put
offset
attribute when generating a svg image if offset equals0
. See https://www.w3.org/TR/SVG/pservers.html#GradientStopAttributesBatik fails with exception while trying to read such svgs. Other programs successfully open these files.
The pull request sets
offset
to0
when the attribute is missing.Example of an icon: