Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Created March 29, 2012 23:49
Show Gist options
  • Save LeaVerou/2245006 to your computer and use it in GitHub Desktop.
Save LeaVerou/2245006 to your computer and use it in GitHub Desktop.
SVG gradients through data URI
/**
* SVG gradients through data URI
*/
background: #f06;
background: radial-gradient(50% -80%, red, yellow);
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><radialGradient id="g" cy="-80%" r="180%"><stop stop-color="red" /><stop offset="100%" stop-color="yellow" /></radialGradient><rect width="100%" height="100%" fill="url(#g)" /></svg>');
min-height: 100%;
{"view":"split","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment