SVG Rendering Discrepancy with props like fill="url(#paint4_linear_10_58)"
#873
Labels
b-bug
Something isn't working
fill="url(#paint4_linear_10_58)"
#873
Describe the bug
A clear and concise description of what the bug is.
Discrepancy in rendering some SVG's.
SVG's with a
fill="url(#paint5_linear_10_58)"
or similar seem end up raising some errors. while It is completely valid for other platforms.To Reproduce
Steps to reproduce the behavior
or a code snippet containing the scene that causes the problem:
Example of Suspect SVG:
( I was trying to conduct a test experiment with the svg trying out MotionCanvas )
Expected behavior
I was expecting it to be able to render proplerly. but it throws an error at the start of the animation loop. I think the problem might be how it parses the svg.
Console errors
there's a few more of such errors but they all are about different props in the svg material.
Package versions:
Additional context
I think this is about the way we are parsing SVG, I'll try to investigate further and add my findings to this discussion.
like it tries to look for a absolute color. and it gets a var in place of it. so it gives up on rendering the thing.
The text was updated successfully, but these errors were encountered: