W3C

First Public Working Draft: Media Queries Level 4

The Cascading Style Sheets (CSS) Working Group has published a Working Draft 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. The specification extends and supersedes the features defined in Media Queries Level 3. CSS is a language for describing the rendering of structured documents (such as HTML and XML) on screen, on paper, in speech, etc. Learn more about the Style Activity.