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

CSS filter on <svg> makes it disappear in Safari #22

Open
lonekorean opened this issue May 26, 2016 · 2 comments
Open

CSS filter on <svg> makes it disappear in Safari #22

lonekorean opened this issue May 26, 2016 · 2 comments

Comments

@lonekorean
Copy link

Adding a CSS filter property onto an element makes the element disappear. A workaround is to move the CSS filter to a wrapping element.

@emilbjorklund
Copy link
Owner

emilbjorklund commented Oct 11, 2016

@lonekorean Slow burn on this but: do you have a code example for this? If it’s the bug I think it is, I may have a fix, and then we can document that here.

(Basically, applying an SVG filter to HTML content in Safari sometimes requires you to also add a null transform like transform: translate(0, 0) to get Safari to fix up the coordinate system, otherwise the filter is applied to the SVG coordinates, sometimes causing the element to disappear or the effect to not show up)

@emilbjorklund
Copy link
Owner

See also: #27

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

No branches or pull requests

2 participants