weilou weilou - 10 months ago 48
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 Source

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