-
Notifications
You must be signed in to change notification settings - Fork 226
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
Fix issue with relative units in symbols #832
Conversation
A yet another As for a solution, hard to say. As long as it doesn't break existing tests it should be fine, but it feels like a hack. No idea how it should be handled properly. |
Can we simply override the viewbox size like we do in |
I guess it should work, let me try. |
Hmm, I'm not sure though, because a view box conceptually has a x/y coordinate, too, does it really make sense to just replace the width/height of the view box in this case? |
I feel like it would a more straight-forward approach since we already doing the same with |
Better now? |
All good. Thanks! |
Fixes #829
I'm not a 100% sure about this fix, so some scrutiny would be appreciated. With that said, I think there were two things going on:
use_size
attribute for use nodes linked to symbols.Let me know what you think.
Given the following SVG:
Before:
After, which also matches Chrome: