CSS WG Blog Updated CRD of Media Queries Level 4

This is a page from the Cascading Style Sheets Working Group Blog. Some other places to find information are the “current work” page, the www-style mailing list, the Future of CSS syndicator, and the issue list on Github.

Do you want to know how the CSS WG works? Fantasai has written about:csswg, An Inside View of the CSS Working Group at W3C.

Updated CRD of Media Queries Level 4

By Florian Rivoal January 2, 2022 (Permalink)
Categories: publications

The CSS WG has published a Candidate Recommendation Draft and invites implementations of the 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, and marks a shift from attempting to categorize different devices into distinct media types to describing them through media features.

This republication of MQ4 is a minor update to publish some editorial tweaks and to correct an issue in the syntax description.

Significant changes through various versions are listed in the changes section.

Implementors are encouraged to complete their support for the features described in this specification and to contribute to the test suite.

Please send feedback by either filing an issue in GitHub (preferable) or sending mail to the (archived) public mailing list www-style@w3.org with the spec code ([mediaqueries-4]) and your comment topic in the subject line. (Alternatively, you can email one of the editors and ask them to forward your comment.)

« Previous article Next article »

[Photo: group photo of the CSS working group in San Francisco] Contact: Bert Bos
Copyright © 2020 W3C®

Last updated 2022-01-02 07:25:54