[mediaqueries-5] Consider specifying privacy guidelines for user agents which automatically toggle prefers-color-scheme based on user location data #4404
Labels
mediaqueries-5
privacy-tracker
Group bringing to attention of Privacy, or tracked by the Privacy Group but not needing response.
Currently, the Media Queries Level 5 spec has this to say about the conditions a user agent may decide to take into account when determining what value to use for prefers-color-scheme:
One common use case I've seen pop up lately is users wanting their system-wide dark mode setting to automatically toggle based on location-dependent data, such as the position of the sun relative to their current geolocation (i.e. they want to automatically turn on "dark mode" at dusk). If implemented naively without taking privacy into account, such a feature combined with prefers-color-scheme could potentially reveal the user's longitude to all websites with a remarkable degree of precision. (Multiple readings over the course of a year might also be able to determine latitude to some extent.)
In my opinion, this particular privacy concern seems both common enough and significant enough that it may be worth calling out explicitly in the spec to ensure it is properly addressed by user agents which choose to implement that feature.
This is also related to #3488
The text was updated successfully, but these errors were encountered: