g214/static/bower_components/modernizr/feature-detects/elem-progress-meter.js

12 lines
423 B
JavaScript
Raw Normal View History

2020-11-12 02:29:05 +00:00
//By Stefan Wallin
//tests for progressbar-support. All browsers that don't support progressbar returns undefined =)
Modernizr.addTest("progressbar",function(){
return document.createElement('progress').max !== undefined;
});
//tests for meter-support. All browsers that don't support meters returns undefined =)
Modernizr.addTest("meter",function(){
return document.createElement('meter').max !== undefined;
});