Reference and Documentation
Tutorials and Resources
var queryToTest = "only all and (max-width: 400px)";
//the query is true
Learn more about detecting feature support with Modernizr.