Skip to content

Instantly share code, notes, and snippets.

@data-enhanced
Created September 29, 2014 15:54
Show Gist options
  • Save data-enhanced/a2f804576dbc253700fb to your computer and use it in GitHub Desktop.
Save data-enhanced/a2f804576dbc253700fb to your computer and use it in GitHub Desktop.
SVG with PNG fallback -- from Alexey Ten and CSS Tricks
<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