Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefers-reduced-transparency #145

Open
CanadaHonk opened this issue Mar 13, 2023 · 14 comments
Open

prefers-reduced-transparency #145

CanadaHonk opened this issue Mar 13, 2023 · 14 comments
Assignees
Labels
concerns: privacy This proposal may cause privacy risk if implemented topic: css Spec relates to CSS (Cascading Style Sheets) venue: W3C CSS WG

Comments

@CanadaHonk
Copy link

CanadaHonk commented Mar 13, 2023

Request for position on an emerging web specification

Information about the specification

Design reviews and vendor positions

Bugs tracking this feature

Anything else we need to know

Whilst this is part of Media Queries Level 5, it is unclear whether this is generally accepted by vendors due to a potential fingerprinting risk. Would be good to have an opinion from WebKit if possible. Thanks!

@marcoscaceres marcoscaceres added topic: css Spec relates to CSS (Cascading Style Sheets) concerns: privacy This proposal may cause privacy risk if implemented venue: W3C CSS WG labels Mar 21, 2023
@marcoscaceres
Copy link
Contributor

Adding general privacy concern about exposing prefers-* things. We need a general position on all prefers-*, as they serve as a finger printing vector.

@CanadaHonk
Copy link
Author

Fwiw, I wrote the patch implementing it to Gecko and it was agreed to disable by default for now due to fingerprinting concerns also.

@hober hober moved this from Unscreened to Needs position in Standards Positions Review Backlog Mar 23, 2023
@hober hober moved this from Needs position to Needs assignees in Standards Positions Review Backlog Mar 27, 2023
@hober hober self-assigned this Mar 27, 2023
@hober hober moved this from Needs assignees to Needs position in Standards Positions Review Backlog Mar 27, 2023
@hober hober changed the title Request for position on prefers-reduced-transparency prefers-reduced-transparency Mar 30, 2023
@smfr
Copy link

smfr commented Apr 13, 2023

There's a PR for this at WebKit/WebKit#11560

@lukewarlow
Copy link
Member

Any further thoughts on this specific media query?

@lukewarlow
Copy link
Member

Fwiw, I wrote the patch implementing it to Gecko and it was agreed to disable by default for now due to fingerprinting concerns also.

To add to this I'm also currently implementing this in chrome. It's behind the experimental flag atm.

@lukewarlow
Copy link
Member

mozilla/standards-positions#851 I've filed a separate Mozilla position issue specifically related to this media query.

@lukewarlow
Copy link
Member

Tag Review: w3ctag/design-reviews#881

@lukewarlow
Copy link
Member

Fwiw this is shipping in chrome 118.

@cookiecrook
Copy link

cookiecrook commented Oct 2, 2023

@lukewarlow wrote in w3ctag/design-reviews#881:

Organization(s)/project(s) driving the specification:

and

Major unresolved issues with or opposition to this specification: adds a fingerprinting vector

Additional context on why this isn't implemented in WebKit yet found in CSS #8651 (quoting):

Note on Fingerprinting

[Several proposed media features, including this one] are subject to changes based on the
outcome of #145 and other related privacy issues. We debated
not proposing w3c/csswg-drafts#8651 until after privacy issues with @media/matchMedia()
had been resolved, but decided to propose it here anyway to further the discussion.

@bramus
Copy link

bramus commented Oct 3, 2023

To unblock things, would it help if Safari (and possible other UAs) added a preference “Allow websites to cater their UI to my personal preferences and settings” and have that turned off by default? When turned off, all prefers-* MQs would report the default value. An exception to this could be the prefers-color-scheme one (and maybe others as well?).

That way, the APIs can be supported while users (by default) remain protected.

@CanadaHonk
Copy link
Author

Fwiw Gecko's prefers-reduced-transparency and inverted-colors continue to be off by default due to fingerprinting/privacy concerns.

@lukewarlow
Copy link
Member

@bramus I've raised a similar idea on the interop issue for this. Making some (I agree at least color scheme should be on by default) disabled by default makes it a very deliberate opt in for these new media queries to actually expose your preferences? Begs the question whether a UI can allow for meaningful consent but it doesn't need to be overly visible provided the people who need it can find it.

@lukewarlow
Copy link
Member

Fwiw I made an interop 2024 proposal for this MQ and then decide it would probably be better to raise an investigation effort into resolving these privacy concerns. See web-platform-tests/interop#515 might be best to discuss further in there?

@cookiecrook
Copy link

cookiecrook commented Oct 3, 2023

@bramus wrote:

would it help if Safari (and possible other UAs) added a preference “Allow websites to cater their UI to my personal preferences and settings” and have that turned off by default? When turned off, all prefers-* MQs would report the default value. An exception to this could be the prefers-color-scheme one (and maybe others as well?).

We (Apple WebKit contributors specifically and the CSS Working Group more generally) have discussed various accessibility-related user prompts over the years. The main argument against your proposal I remember is that the vast majority of users will not understand that “Allow websites to cater their UI to my personal settings” also means “Allow websites to track me more easily.”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concerns: privacy This proposal may cause privacy risk if implemented topic: css Spec relates to CSS (Cascading Style Sheets) venue: W3C CSS WG
Projects
Development

No branches or pull requests

8 participants