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

gradientTransforms not working properly #76

Open
dasGoogle opened this issue Jul 20, 2022 · 0 comments
Open

gradientTransforms not working properly #76

dasGoogle opened this issue Jul 20, 2022 · 0 comments
Labels
defect Something isn't working

Comments

@dasGoogle
Copy link
Contributor

As a viewer, I expect transformations on gradients to be displayed correctly.

Currently, when rendering the SVG

<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink">
  <defs>
    <linearGradient id="myGradient" gradientTransform="rotate(90)">
      <stop offset="5%"  stop-color="gold" />
      <stop offset="95%" stop-color="red" />
    </linearGradient>
  </defs>

  <!-- using my linear gradient -->
  <rect x="0" y="0" width="200" height="200" fill="url(#myGradient)" />
</svg>

in SVGMorph this displays as
image

when it should be displayed like this:
image

@dasGoogle dasGoogle added the defect Something isn't working label Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant