Intent to Prototype: Media Queries: prefers-reduced-transparency feature

102 views
Skip to first unread message

Luke

unread,
Jul 10, 2023, 11:29:09 AM7/10/23
to blin...@chromium.org

Contact emails

lukewa...@gmail.comlu...@warlow.dev

Explainer

None

Specification

https://drafts.csswg.org/mediaqueries-5/#prefers-reduced-transparency

Summary

Adds the `prefers-reduced-transparency` feature, which lets authors adapt web content to user-selected preference for reduced transparency in the OS, such as the 'Reduce transparency' setting on macOS. Valid options are 'reduce' or 'no-preference'.



Blink component

Blink>CSS

Motivation

None



Initial public proposal

None

Search tags

cssprefers-reduced-transparency

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility



Gecko: Under consideration (https://github.com/mozilla/standards-positions/issues/393) This is an umbrella issue for the preference media queries as a whole. They have a stale PR to add an overall positive position for the preference media queries in general. They also have an implementation behind a flag. It's not been enabled yet due to fingerprinting concerns.

WebKit: No signal (https://github.com/WebKit/standards-positions/issues/145) I have submitted an implementation of this feature as a PR to WebKit: https://github.com/WebKit/WebKit/pull/11560

Web developers: No signals

Other signals:

Security

This feature can be used for fingerprinting as it exposes a user preference.



WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?



Debuggability

This will need emulation support added to DevTools matching existing preference media queries.



Is this feature fully tested by web-platform-tests?

Yes

Flag name on chrome://flags



Finch feature name



Non-finch justification

None

Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1424879

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5191066147356672

Links to previous Intent discussions



This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages