I'm writing a plugin that is reliant on CSS3 gradient background properties. I have no problem getting something like this to work:
$(this).css({ '-webkit-box-shadow': 'inset 2px 2px 5px #DEDEDE' });
However, this fails to work:
$(this).css({ 'background': '-webkit-gradient(linear,left top,left bottom,from(#f4f4f4),to(#FFFFFF))' });
I was under the assumption that .css() worked with any property supported by the browser so I'm either setting it wrong with jQuery or this property isn't supported?