-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Remove useless wrapping tags #419
Comments
Furthermore, change translate="transform(10,10)" to x="10" y="10" (shorter). And better yet, (optionally) inline styles to style="properties:here" which is in anmost any case the shorter syntax. Cheers. |
|
Actually four is the threshold after which style becomes the more efficient option. Not worth it I would say: http://d.pr/i/1jB6A I did not know about the x and y’s limitations in that regard. Thanks. |
@nathanuphoff I think the W3C recommends inline attributes instead of inline styles. In fact, some CSS properties act differently than their SVG equivalents (transforms for example). |
@nt1m Clear. I’m pretty fresh to svg outside Sketch.app until some things annoyed me and I had to take a look below the surface. Consider me a newbie to the matter. It’s like learning html all over again, including all the quirks. |
Regarding the subject, |
If a g tag only has one child, apply the styles and attributes on the child then remove the tag.
The text was updated successfully, but these errors were encountered: