Created
September 29, 2014 15:54
-
-
Save data-enhanced/a2f804576dbc253700fb to your computer and use it in GitHub Desktop.
SVG with PNG fallback -- from Alexey Ten and CSS Tricks
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
<svg width="96" height="96"> | |
<image xlink:href="svg.svg" src="svg.png" width="96" height="96" /> | |
</svg> | |
<!-- | |
by Alexey Ten | |
http://lynn.ru/examples/svg/en.html | |
Exploits the way browsers render the image tag. Widely supported, including all major browsers. | |
IE 8, which doesn't support SVG, it displays the fallback PNG. Android 2.3, same story. | |
More details, including performance and some issues in older mobile OS's here: | |
http://css-tricks.com/svg-fallbacks/ | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment