-
For checking programmatically we use _________.
-
- Modernizr._prefixes
- Modernizr.testAllProps
- Modernizr.mq
- Modernizr.prefixed
- None of these
Correct Option: C
For checking programmatically we use Modernizr.mq, it checks if the window of current browser matches a media query or not. Syntax is
var qu= Modernizr.mq(‘(min-width: 300px)’);
if(qu) {// browser window is larger than 300 px}
We should use only valid media query. Modernizr.prefixed Modernizr API takes string CSS value in Document Object Model. Modernizr._prefixes is internal list of prefixes. To check whether a given CSS property is supported by browser, Modernizr.testAllProps API.