Intent to prototype: prefers-reduced-transparency media query

117 views
Skip to first unread message

Oj

unread,
Mar 13, 2023, 5:36:29 PM3/13/23
to dev-pl...@mozilla.org
Summary:
The "prefers-reduced-transparency" media query allows websites to reduce the amount of transparent objects/effects to become more accessible for some users who may have difficulties parsing content through translucent backgrounds, etc. Based on system settings.

With https://phabricator.services.mozilla.com/D172424, it is now implemented behind the preference said below, disabled by default.

Standards body: W3C
Platform coverage: All

Preference: layout.css.prefers-reduced-transparency.enabled

Other browsers:
- Blink: Not shipped or implemented. No bug or standards position.
- WebKit: Not shipped or implemented. Bug: https://bugs.webkit.org/show_bug.cgi?id=175497. Specific standards position: https://github.com/WebKit/standards-positions/issues/145

Web platform tests: Added in same Gecko patch, https://phabricator.services.mozilla.com/D172424

How stable is the spec: Media Queries Level 5 is currently a Working Draft.
Security & privacy concerns: This potentially introduces a fingerprinting vector, so the pref for this specific media query will be kept disabled by default until decided. Bug for potentially enabling by default: https://bugzilla.mozilla.org/show_bug.cgi?id=1822176
Web designer / developer use-cases: Some users find it hard to parse text or content with translucent backgrounds. This media query can allow websites to make pages more opaque to assist people who may struggle otherwise.

Henri Sivonen

unread,
Mar 20, 2023, 5:42:44 AM3/20/23
to Oj, dev-pl...@mozilla.org
On Mon, Mar 13, 2023 at 11:36 PM Oj <o...@oojmed.com> wrote:
Summary:
The "prefers-reduced-transparency" media query allows websites to reduce the amount of transparent objects/effects to become more accessible for some users who may have difficulties parsing content through translucent backgrounds, etc. Based on system settings.

I added a comment to the standards-position issue recounting how, anecdotally, people (including me) have ended up with this pref set on Mac for reasons that don't involve an essential a11y need:

I think exposing a bit of fingerprinting entropy is problematic especially given how/why people end up with this pref set on Mac.

--
Henri Sivonen
hsiv...@mozilla.com
Reply all
Reply to author
Forward
0 new messages