Comments (8)
That’s a good start.
from svg4everybody.
A kind of extensive/complete list like this would be super useful!
Especially when directly integrated into the readme, as propose by David.
I used SVGForEverybody in two smaller projects recently and didn't get any complaints about icons not showing up, so I guess it's working more solid than I expected ;)
From my personal tests I can confirm that SVGForEverybody works as expected (renders SVG graphics from an external SVG sprite) in the following settings:
- Safari 5.1 (OSX 10.6.8 - Snow Leopard)
- Safari 8.0 (OSX 10.10.3 - Yosemite)
- Firefox 38 (OSX 10.6.8 - Snow Leopard, OSX 10.10.3 - Yosemite)
- Chrome 38 (OSX 10.6.8 - Snow Leopard)
- IOS Safari 7.1
- IOS Safari 8.1
@davidhund - have you done any more work on this? Would be great, if you could update your list above.
Maybe others could share some quick test results too?
from svg4everybody.
@twiro Thanks Roman (*hey, a Symphony CMS user! 😄 *)
I'm afraid I have not done any more work on this. But I understand SFE works correctly in the browsers you've tested? If you could also check the ‘native’ support for SVG and SVG Fragment Identifiers that would be neat. I could then update the comment (table) above with your browser info.
@jonathantneal What do you think of adding a compat table such as the above to the README? That way people could update it through a PR instead of adding separate comments 😉
from svg4everybody.
@davidhund - Ah, Symphony! I knew I had seen your profile pic elsewhere around :)
I won't find time for more extensive tests til the end of the week, but I just stumbled across this resource, that already includes some of the missing information:
Regarding the basic funtionality of SVG Fragment identifiers I think it's safe to rely on the list provided by caniuse.com
@jonathantneal 👍 for adding a (more complete) compat table to the readme.
from svg4everybody.
Hi. In my experience with <svg><use xlink:href="url#id"></use></svg>
there are three kinds of support that should be tested:
- Referencing a symbol in a SVG element at the start of the HTML page.
- Referencing a symbol in a SVG element at the end of the HTML page.
- Referencing a symbol in an external SVG element (that the browser then has to fetch).
Unless I'm mistaken, SFE polyfills the third use case. Browsers that don't support it include some old WebKit versions, and IE 9-12 (including Edge, at least the current preview version). SFE also inserts <img>
tags referencing PNG files (that you have to create yourself) for IE8–not sure how that would be reflected in a compat table.
We've used svg4everybody on a few projects at work. At least 2 are in production now. Icons are broken without JS in IE, but those projects have more breakage without JS anyway (I'm trying to push for more progressive enhancement but it's a tough sell). We haven't had major issues, but they're not projects with comprehensive testing and efficient feedback channels, so that doesn't prove much. We had one big issue with icons not showing up in Safari 6-7 (they were okay in Safar 8) on mobile and desktop, but after much investigation it turned out to be an awful CSS bug in WebKit, and nothing to do with SVG or svg4everybody.
On one project we created black (or sometimes white) PNG images for IE8. It can be a bit tricky to dimension them correctly, especially when you have <svg width="20" height="20">…
and you resize the icon using CSS. You will need to test and try to fix issues in IE8. In the end, that project had no official IE8 support so after a first round of tests and fixes for IE8, it's likely that new IE8 issues have cropped up, some fallback icons are missing, etc. Another project had no official IE8 support and we didn't test at all.
from svg4everybody.
By the way, you write that OSX Safari 7 doesn't have support for fragment identifiers, but a quick test in BrowserStack with Safari 7.0.6 shows that it does.
from svg4everybody.
A compatibility table is being added in 2.0. Please review https://github.com/jonathantneal/svg4everybody/tree/feature/2.0.0#implementation-status
from svg4everybody.
This is now in 2.0
from svg4everybody.
Related Issues (20)
- Not working for MS Edge HOT 3
- can't make href work using svg4everybody HOT 1
- svg4everybody is not defined
- Add workaround for SVG print bug in Firefox
- svg-chrom HOT 1
- SVG transform animateTransform not working in IE11 and Edge 42
- linearGradient for svg4everybody HOT 2
- run the polyfill only on selected dom element and its children
- Validate Not Running After Page Start
- Inlining External SVG
- Inlining External SVG from sprite, SVG doesn't display correctly HOT 3
- PreserveAspectRatio attribute is stripped out on IE11
- Add option to always replace contents ignoring browser support HOT 2
- Empty XHR embeds after splice(0)
- import does not seem to work properly
- Generate png from svg
- Svg4everybody not working on all svgs in IE11 HOT 2
- Suggestion: Suggest loading the script with the nomodule attribute HOT 2
- Issue with iPhone5 / Safari6
- Link to kartikprabhu.com "Inline SVG Icons" is broken; Archive.org link provided
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svg4everybody.