Simple CSS gradient detection
<p>So I need to detect if a user's browser supports CSS gradients, that's it. I would use Modernizr, but even with only including gradient detection, it would be wasteful compared to just doing it myself.</p>

<p>As I understand it, this would be how to go about it;</p>

<ol>
<li>Creating an element that isn't added to the DOM</li>
<li>Setting <code>background-image</code> to <code>linear-gradient</code> with all the vendor prefixes</li>
<li>Reading <code>background-image</code> and checking for <code>gradient</code>, to see if it's still there</li>
</ol>

<p>I couldn't figure out Modernizr's source though, what's the core of what they're doing in this? So I can do it myself. <a href="http://modernizr.com/download/#-cssgradients-prefixes" rel="nofollow">http://modernizr.com/download/#-cssgradients-prefixes</a></p>
