Skip to content

Instantly share code, notes, and snippets.

@madrobby
Created September 16, 2013 18:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madrobby/6584720 to your computer and use it in GitHub Desktop.
Save madrobby/6584720 to your computer and use it in GitHub Desktop.
data URL with svg+xml:
data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1' height='1'><rect fill='#ff0000' x='0' y='0' width='1' height='0.5'/></svg>
data URL with svg+json:
data:image/svg+json;utf8,{"width":1,"height":1,"svg":[{"rect":{"fill":"#ff0000","x":0,"y":0,"width":1,"height":0.5}}]}
@rafaelrinaldi
Copy link

Me like it.

@sn
Copy link

sn commented Sep 16, 2013

Great idea!

@rdrake98
Copy link

Why not. Readability and more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment