Html miscellaneous
- Which of the following detects for the support of size attribute of an image?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Sizes test for the sizes attribute for images. Image crossOrigin is used to check the support of crossOrigin attribute on images, it allows cross domain images on a canvas, JPEG 2000 and JPEG XR are respectively for the check of JPEG 2000 and JPEG XR formats on the images.
- Which of the following check support for non-alpha, lossy webp?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Webp Lossless detects for lossless webp, non-alpha webp support. Webp tests for all forms of webp support like alpha, lossy, animated, lossless etc. Webp Animation detects for the support of animation in webp, Webp Alpha detects the support of transparent webp.
- Which of the following detects support for the method of the form?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
input formmethod detects support for formmethod attribute, input formtarget detects for formtarget attribute on forms, input formenctyp detects for the support of formenctype attribute, it overrides form enctype attribute, input formactin detects for the support of formaction attribute.
- Which of the following detects support for basic Worker API?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The support of basic web worker is detected by web workers. Web workers mean running a script in the background for web content. Shared workers detect support of shared workers, data workers detect support for creating Web Workers from Data URI’s. Blob workers detect support for creating web workers from Blob URI.
- Which of the following is internal list of prefixes?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Modernizr._prefixes is internal list of prefixes. It is set against things like prefixedCSS and prefixed. It is an array of kebab-case vendor.
E.g. var ru= Modernizr._prefixes.join(‘transform: rotate(10deg);’); ru == ‘transform: rotate(10deg)’; webkit- transform: rotate(10deg); moz-transform: rotate(10deg); o-transform: rotate(10deg); ms-transform: rotate(10deg);’
Modernizr.prefixedCSSVAlue (prop,value). Modernizr.prefixed takes string css value in camelCase. Modernizr.prefixedCSS returns hyphenated value.