Last Updated: February 25, 2016
·
878
· dviramontes

Add media query support test to Modernizr test suit:

Modernizr.addTest("mq", function(){
return !!Modernizr.mq("only all");
});

adds: <html class="mq">
or in the case of ie 7 & 8 <html class="no-mq"> :(

Have a fresh tip? Share with Coderwall community!

Post
Post a tip