Skip to content
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

preserve--preserveaspectratio not working #123

Open
iamallyniam opened this issue Aug 30, 2016 · 4 comments
Open

preserve--preserveaspectratio not working #123

iamallyniam opened this issue Aug 30, 2016 · 4 comments

Comments

@iamallyniam
Copy link

iamallyniam commented Aug 30, 2016

I'm trying to keep the aspect ratio of some of my svg files, but the preserve method isn't working on the svg tag e.g

<svg viewBox="0 0 2840 650" preserve--preserveaspectratio="xMinYMin slice">
  <path class="fill-2" d="M2840,650l-1561.44-1.279L336.812,451.643,2840,419V650Z"/>
  <path class="fill-3" d="M1295.17,650.111L336.812,451.643,918.878,653.992Z"/>
</svg>

Have tried with both lower, camel and upper case but none work.

@aaronlsilber
Copy link

@iamallyniam Any luck with this? I can't use this library without preserving this attribute on specific files. What are you using these days?

@seierstad
Copy link

@iamallyniam @aaronlsilber I implemented/fixed this in gulp-svgstore.

That code may be useful for this project as well.

@medarob
Copy link

medarob commented Feb 23, 2018

Same here, the preserve-- methode is not working on preserveaspectratio.
And it's also not working on the following namespace declaration: xmlns:xlink="http://www.w3.org/1999/xlink"

Can someone fix this issue, please?

@aradalvand
Copy link

Any updates on this?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants