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

add Media Queries Level 5: prefers-reduced-motion, prefers-contrast, … #410

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tantek
Copy link
Member

@tantek tantek commented Jul 28, 2020

…prefers-color-scheme as important

Add a cluster of related Media Queries Level 5 features: prefers-reduced-motion, prefers-contrast, prefers-color-scheme as important

…prefers-color-scheme as important

Add a cluster of related Media Queries Level 5 features: prefers-reduced-motion, prefers-contrast, prefers-color-scheme as important
@martinthomson
Copy link
Member

cc @jcsteh for a second opinion. But this looks good to me.

@jcsteh
Copy link
Contributor

jcsteh commented Jul 29, 2020 via email

@annevk
Copy link
Contributor

annevk commented Aug 3, 2020

This would close #393.

One thing I've been wondering with respect to exposing this kind of information to pages is privacy and to some extent abuse. And https://www.w3.org/TR/mediaqueries-5/#mq-prefers-security is awfully empty both with regards to risks and mitigation options.

What prevents a site upon seeing a request for reducing motion from increasing it?

And these signals coupled with others would also allow for targeted advertising and other kinds of manipulation.

Base automatically changed from master to main January 15, 2021 11:27
@CanadaHonk
Copy link

As an update/bump: prefers-reduced-motion has been shipped since Firefox 631, prefers-color-scheme since Firefox 672 and prefers-contrast since Firefox 1013.

This PR (and the issue) is missing some more media queries though, not sure if intentional or just added later. Specifically:

Footnotes

  1. https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion#browser_compatibility

  2. https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme#browser_compatibility

  3. https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-contrast#browser_compatibility

  4. https://developer.mozilla.org/en-US/docs/Web/CSS/@media/forced-colors#browser_compatibility

  5. https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-data#browser_compatibility

@lukewarlow
Copy link

Fyi I've raised a separate issue to get a position on this #851

Also similarly I've raised an issue regarding inverted-colors #853

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Media Queries Level 5: prefers-reduced-motion, prefers-contrast, prefers-color-scheme
6 participants