Svg-sprite-loader: Mention in README that this is not working in Safari

Created on 16 Aug 2017  路  10Comments  路  Source: JetBrains/svg-sprite-loader

Hi, the solution does not work in Safari :-(. The extraction works great, linking to sprite.svg#fragment from background-image CSS attribute is good with Chrome, but in Safari you have no luck.

Mentioning this in README would save me few hours implementing the package into our dev stack. We cannot afford having no icons in Safari.

Would it be a problem to mention this right away? Thank you.

wait for reply

Most helpful comment

@vchrm currently it's a planned feature for 4.x (see kisenka/svg-baker#4), but as usual I have no time to implement it :) BTW the only working approach among all browsers is to create classic sprite and move it's background-position. I'll try to find time on next week.

All 10 comments

Hi! Could you please make a PR?

@vchrm ping

Yes, but not this week (too much work). Moreover I am still investigating the issue (trying to find some working polyfill or something).

I have the same issue. Unfortunately svgxuse is not working for this purpose. Any other solution? Maybe this has something to do with the way svg-sprite-loader is creating fragments ids in external file (exposed by use element referenced internally to symbol).

@vchrm currently it's a planned feature for 4.x (see kisenka/svg-baker#4), but as usual I have no time to implement it :) BTW the only working approach among all browsers is to create classic sprite and move it's background-position. I'll try to find time on next week.

Do we agree that this is what Safari is missing? https://caniuse.com/#feat=svg-fragment

@vchrm yes, both, desktop and mobile.

The simplest solution is to use object instead of img. Not sure if this has some disadvantages.

Looking forward to hearing from this 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

evgenyrodionov picture evgenyrodionov  路  4Comments

fruchtose picture fruchtose  路  5Comments

denisw picture denisw  路  3Comments

llushikang picture llushikang  路  4Comments

whois42 picture whois42  路  5Comments