Html miscellaneous
- For testing prefixed CSS properties we use _____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
For checkin prefixed CSS properties we use Modernizr.prefixedCSS value. Syntax is
Modernizr.prefixedCSSVAlue (prop,value).
Modernizr.prefixed takes string css value in camelCase. Modernizr.prefixed takes string css value in camelCase. Modernizr.prefixedCSS returns hyphenated value. Modernizr._prefixes is internal list of prefixes.
- The features that can’t be detected by checking idle are checked by ____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Modernizr.testProp is just like Modernizr.testAllProps but only difference is it doesn’t check for vendor. The features that can’t be check by IDL is checked by Modernizr.testStyles, it takes CSS rule and embed it onto current page with DOM elements. Syntax is
Modernizr.testStyles (rule,callback,[nodes],[testnames]).
We can add additional div elements also on the page as per requirement. Modernizr.prefixedCSS is same like Modernizr.prefixed except it returns result in hyphenated form.
- For checking programmatically we use _________.
-
View Hint View Answer Discuss in Forum
NA
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.
- Which of the following is used to determine browser support?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
If you want to create your own feature detects you can simply use Modernizr.addTest. Modernizr.hasEvent helps in determining browser support. It does detection of div element by default. Syntax is hasEvent(‘video’). But if we want to give an object to detect something other than div, we can give second argument as hasEvent(‘blur’, window). It also returns a Boolean value. Modernizr.atRule is one of modernizr API(Application Programming Interface) having syntax like – Modernizr.atRule(prop). Modernizr.prefixed Modernizr API takes string CSS value in Document Object Model.
- Which of the following can be helpful in creating your own feature detect?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
If you want to create your own feature detects you can simply use Modernizr.addTest, a string is passed generally in lowercase without any punctuation like Modernizr.addTest(feature, test). It returns the Boolean value. Modernizr._domPrefixes works same as _prefixes. Modernizr.atRule is one of modernizr API(Application Programming Interface) having syntax like – Modernizr.atRule(prop).