Created
December 19, 2016 14:44
-
-
Save davidbarredo/3605d3308c9531fc379d311ad123a2eb to your computer and use it in GitHub Desktop.
One line to detect SVG support (usually for IE8)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var svgSupport = !!(document.createElementNS && document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: https://css-tricks.com/test-support-svg-img/