Last active
January 1, 2017 19:40
-
-
Save thebeckyhamm/41b96a30a912cfd6416f to your computer and use it in GitHub Desktop.
svg with fallback using picture element. Don't use until better supported/or use picturefill
This file contains hidden or 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
<picture> | |
<source type="image/svg+xml" srcset="path/to/image.svg"> | |
<img src="path/to/fallback.png" alt="Image description"> | |
</picture> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment