W3C

Updated Candidate Recommendation: Media Queries Level 4

The CSS Working Group invites implementation of an updated Candidate Recommendation of Media Queries Level 4. Media Queries allow authors to test and query values or features of the user agent or display device, independent of the document being rendered. They are used in the CSS @media rule to conditionally apply styles to a document, and in various other contexts and languages, such as HTML and JavaScript. Media Queries Level 4 describes the mechanism and syntax of media queries, media types, and media features. It extends and supersedes the features defined in Media Queries Level 3.