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

transform-origin is not respected #156

Open
adamwong246 opened this issue Feb 14, 2022 · 0 comments · May be fixed by #157
Open

transform-origin is not respected #156

adamwong246 opened this issue Feb 14, 2022 · 0 comments · May be fixed by #157

Comments

@adamwong246
Copy link

<svg width="100" height="100" viewBox="0 0 100 100">
  <rect width="100%" height="100%" fill="gold"/>
  <rect width="100%" height="100%" transform-origin="50% 50%" transform="scale(0.3)" fill="green"/>
</svg>

Rendered correctly: https://codepen.io/adamwong246/pen/QWOvxRP
Screen Shot 2022-02-14 at 3 28 19 PM

Rendered incorrectly: https://alafr.github.io/SVG-to-PDFKit/examples/demo.htm
Screen Shot 2022-02-14 at 3 27 03 PM

@adamwong246 adamwong246 linked a pull request Feb 22, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant