Skip to content

Instantly share code, notes, and snippets.

@captainbrosset
Created April 29, 2024 09:32
Show Gist options
  • Save captainbrosset/a155208250b68d64cbfb04422a2e63d1 to your computer and use it in GitHub Desktop.
Save captainbrosset/a155208250b68d64cbfb04422a2e63d1 to your computer and use it in GitHub Desktop.
legacy -ms-high-contrast
@media (-ms-high-contrast: active) {
/* Your general contrast theme styles */
}
@media (-ms-high-contrast: black-on-white) {
/* Your specific light contrast theme styles */
}
@media (-ms-high-contrast: white-on-black) {
/* Your specific dark contrast theme styles */
}
/* For elements that need to opt-out of contrast theme styles */
.opt-out-of-high-contrast {
-ms-high-contrast-adjust: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment