Last active
January 5, 2022 10:42
-
-
Save elfacht/6fe33d82534d86b49e8322496ceb78e6 to your computer and use it in GitHub Desktop.
User Preference Media Features in CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
@source | |
https://drafts.csswg.org/mediaqueries-5/#mf-user-preferences | |
https://css-tricks.com/weekly-platform-news-reduced-motion-cors-whitehouse-gov-popups-and-100vw/ | |
*/ | |
/* contrast */ | |
@media (prefers-contrast: no-preference|less|more) { | |
/* … */ | |
} | |
/* reduced motion */ | |
@media (prefers-reduced-motion: no-preference|reduced) { | |
/* … */ | |
} | |
/* reduced transparency */ | |
@media (prefers-reduced-transparency: no-preference|reduced) { | |
/* … */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment