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

SVG Group Opacity Parsing #3727

Closed
chryton opened this issue Feb 20, 2017 · 1 comment · Fixed by #3747
Closed

SVG Group Opacity Parsing #3727

chryton opened this issue Feb 20, 2017 · 1 comment · Fixed by #3747

Comments

@chryton
Copy link

chryton commented Feb 20, 2017

Version

1.7.6

Test Case

https://jsfiddle.net/chryton/6cs7r8q0/1/

Steps to reproduce

Have an SVG with a group with an opacity and child elements beneath it with a different opacity.

In the fiddle, see the canvas being rendered incorrectly and the two SVGs beneath rendering correctly.

Expected Behavior

Group opacity should be read along with child opacity

Actual Behavior

Group opacity is being ignored

Notes

I could be completely wrong about what the issue is here but it seems that something with the group opacity is either being read incorrectly or just straight up ignored. The SVGs were exported from Illustrator and run through SVGO; the original, non-optimized SVG have the exact same problem.

@asturur
Copy link
Member

asturur commented Feb 21, 2017

https://jsfiddle.net/6cs7r8q0/4/

The fiddle should be as minimal as possible.

I reduced the fiddle to something smaller with just one SVG.

There seems to be a bug.

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

Successfully merging a pull request may close this issue.

2 participants