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

Vendor-prefixed -ms-high-contrast and -ms-high-contrast-adjust are deprecated #801

Open
carrythebanner opened this issue Aug 29, 2024 · 0 comments · May be fixed by #833
Open

Vendor-prefixed -ms-high-contrast and -ms-high-contrast-adjust are deprecated #801

carrythebanner opened this issue Aug 29, 2024 · 0 comments · May be fixed by #833

Comments

@carrythebanner
Copy link
Collaborator

The standardized forced-colors and forced-color-adjust CSS properties have been available for a while; the vendor-prefixed -ms-high-contrast and -ms-high-contrast-adjust versions predated those but are now being deprecated. (You can see a console warning in Edge v126 and later.)

We currently use both, but it should be safe to use only the standardized version here on out:

@media (-ms-high-contrast: active), (forced-colors: active) {

https://blogs.windows.com/msedgedev/2024/04/29/deprecating-ms-high-contrast/

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

Successfully merging a pull request may close this issue.

1 participant