How can I test if a browsers support the CSS3 calc() property using Modernizr?
I have tried:
if (Modernizr.testProp('cssCalc')) {
console.log('CSS calc() supported');
}
but this only returns "undefined" in the console.
(I am using modernizr-2.6.2.js).
What is the right way to use Modernizr for browser feature detection?
testProp()
takes a CSS property name. – Damnify