weilou weilou - 2 months ago 11
CSS Question

How can I detect via JavaScript if browser supports CSS3 media queries and CSS3 gradient?

How can I detect via JavaScript if browser supports CSS3 media queries?

How can I detect via JavaScript if browser supports CSS3 gradient?

Thank you.

Answer

Have a look at http://modernizr.com/, it's a great library for featuredetection using javascript.