Media Queries Level 4
At the time of writing, while CSS Media Queries Level 4 enjoy a draft specification (http://dev.w3.org/csswg/mediaqueries-4/), the features in the draft don't enjoy many browser implementations. This means that while we will take a brief look at the highlights of this specification, it's highly volatile. Ensure you check browser support and double-check for syntax changes before using any of these features.
For now, while there are other features in the level 4 specification, we will concern ourselves only with scripting, pointer and hover, and luminosity.
Scripting media feature
It's a common practice to set a class on the HTML tag to indicate that no JavaScript is present by default and then replace that class with a different ...
Get HTML5 and CSS3: Building Responsive Websites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.