We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
the following example is rendered different in chrome/firefox and resvg
<svg width="1000" height="1000" viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <defs> <symbol id="wheel" height="20" width="20" x="-10" y="-10" viewBox="-10 -10 20 20"> <circle cx="0" cy="0" r="8" fill="red" stroke="black"/> </symbol> </defs> <rect x="90" y="90" width="20" height="20" fill="green"/> <use href="#wheel" x="100" y="100" height="20" width="20" /> <rect x="140" y="90" width="20" height="20" fill="green"/> <use href="#wheel" x="150" y="100" height="20" width="20" /> </svg>
Browser:
resvg:
Maybe resvg does not use the x- and y.Attributes of the symbol ?
The text was updated successfully, but these errors were encountered:
This is an unsupported SVG 2 feature. Prefer using just a viewBox.
viewBox
@LaurenzV looks like our SVG 2 change log is a bit outdated. We do mention refX/refY, but not geometry attributes.
Sorry, something went wrong.
No branches or pull requests
the following example is rendered different in chrome/firefox and resvg
<svg width="1000" height="1000" viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <defs> <symbol id="wheel" height="20" width="20" x="-10" y="-10" viewBox="-10 -10 20 20"> <circle cx="0" cy="0" r="8" fill="red" stroke="black"/> </symbol> </defs> <rect x="90" y="90" width="20" height="20" fill="green"/> <use href="#wheel" x="100" y="100" height="20" width="20" /> <rect x="140" y="90" width="20" height="20" fill="green"/> <use href="#wheel" x="150" y="100" height="20" width="20" /> </svg>
Browser:

resvg:
Maybe resvg does not use the x- and y.Attributes of the symbol ?
The text was updated successfully, but these errors were encountered: