Skip to content

Commit

Permalink
update to latest CSS gradients syntax. (via Ms2ger)
Browse files Browse the repository at this point in the history
  • Loading branch information
Modernizr committed Nov 9, 2009
1 parent ac2d409 commit c36a886
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modernizr.js
Expand Up @@ -302,11 +302,12 @@ window.Modernizr = (function(window,doc){
* http://webkit.org/blog/175/introducing-css-gradients/
* https://developer.mozilla.org/en/CSS/-moz-linear-gradient
* https://developer.mozilla.org/en/CSS/-moz-radial-gradient
* http://dev.w3.org/csswg/css3-images/#gradients-
*/

var str1 = background + '-image:',
str2 = 'gradient(linear,left top,right bottom,from(#9f9),to(white));',
str3 = 'linear-gradient(left top,right bottom,from(#9f9),to(white));';
str3 = 'linear-gradient(left top,#9f9, white);';

set_css(
str1 + str2
Expand Down

1 comment on commit c36a886

@mislav
Copy link
Contributor

@mislav mislav commented on c36a886 Dec 2, 2009

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks

Please sign in to comment.