prefers-reduced-data
- Category
- CSS
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- Start prototyping
WPT details: https://github.com/web-platform-tests/wpt/pull/21731
Summary
Support to be added for the CSS media query prefers-reduced-data. This will detect if the user has set "data saver" or other platform equivalent in their system, and give developers hooks into this user desire when loading or styling a page. This is for users who prefer to use minimal amounts of data on their device, and for developers to adapt to this preference.
Motivation
Client hints and Javascript already have access, let's give it to CSS as well
Standards & signals
- Specification: https://drafts.csswg.org/mediaqueries-5/#prefers-reduced-data
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1051189
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=prefers-reduced-data
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+prefers-reduced-data
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=prefers-reduced-data
- Baseline status: https://webstatus.dev/?q=prefers-reduced-data
Docs: https://drafts.csswg.org/mediaqueries-5/#prefers-reduced-data
Explainers: https://github.com/w3c/csswg-drafts/issues/2370