-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Prefix @media (prefers-contrast) with -ms-prefers-contrast #1351
Comments
I like the idea. Do we have Can I Use page for it? |
Yep, added above: https://caniuse.com/#feat=mdn-css_at-rules_media_prefers-contrast |
Great. Autoprefixer now in migration to PostCSS 8 process. When I finish it, I will try to add this feature. |
hey - IE and Edge Legacy support https://blogs.windows.com/msedgedev/2020/09/17/styling-for-windows-high-contrast-with-new-standards-for-forced-colors/ I don't think it'd be a good idea for Autoprefixer to automatically add styles from |
Good point. Do we have contrarguments or should we close the issue? |
We can use |
@coliff that's not what I got from reading that article you linked. As I understand it, semantically
At least it would seem correct though to transform |
@felixfbecker what do you think about this section? |
The new
@media (prefers-contrast)
media query allows devs to detect whether the user has high contrast active. It's supported in Firefox nightly, but no other browsers.IE and Edge on Windows however have supported
-ms-prefers-contrast
for a long time. It would be great if autoprefixer could autoprefixprefers-contrast
with-ms-
so that visually impaired IE/Edge users on Windows at least get the benefits (which has a lot of users).https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-contrast
https://caniuse.com/#feat=mdn-css_at-rules_media_prefers-contrast
https://docs.microsoft.com/en-us/previous-versions/hh771830(v=vs.85)
https://hacks.mozilla.org/2020/07/adding-prefers-contrast-to-firefox/
The text was updated successfully, but these errors were encountered: