modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
19 lines (18 loc) • 459 B
JavaScript
/*!
{
"name": "picture Element",
"property": "picture",
"tags": ["elem"],
"authors": ["Scott Jehl", "Mat Marquis"],
"notes": [{
"name": "Specification",
"href": "http://picture.responsiveimages.org"
},{
"name": "Relevant spec issue",
"href": "https://github.com/ResponsiveImagesCG/picture-element/issues/87"
}]
}
!*/
define(['Modernizr'], function(Modernizr) {
Modernizr.addTest('picture', 'HTMLPictureElement' in window);
});