[mediaqueries-5] Updated Working Draft of Media Queries Level 5

The CSS Working Group has published an updated Working Draft of Media Queries Level 5

    https://www.w3.org/TR/mediaqueries-5/

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.

This update adds set of media features specific to devices with a separate "plane" used to render videos (https://www.w3.org/TR/mediaqueries-5/#video-prefixed-features), as well as one to inquire about the dynamic range of a device (https://www.w3.org/TR/mediaqueries-5/#dynamic-range).

This comes on top of various media features added since Media Queries Level 4 by the earlier First Public Working Draft of Level 5:
* A set of media features (prefers-reduced-motion, prefers-reduced-transparency, prefers-contrast, prefers-color-scheme) to let authors respond to various preferences expressed by the user.
* forced-colors, a media feature to detect the fact that the User Agent has forcibly applied to the page a user-chosen color scheme.
* A section on custom Media Queries, and two media features (light-level and inverted-colors) that had been dropped from Level 4 when publishing it as a Candidate Recommendation.

All significant changes are listed at:
    https://www.w3.org/TR/2020/WD-mediaqueries-5-20200603/#changes

Please send any comments to the mailing list <www-style@w3.org>, prefixed with [mediaqueries-5] (as I did on this message) or (preferably) file them in the GitHub repository at https://github.com/w3c/csswg-drafts/issues with the spec code [mediaqueries-5] and your comment topic in the subject line.

For the CSS WG,
—Florian Rivoal

Received on Thursday, 4 June 2020 10:07:19 UTC