Windows High Contrast Mode: the limited utility of -ms-high-contrast – TPGi
Imported
Windows High Contrast Mode: the limited utility of -ms-high-contrast
Patrick Lauke | December 12, 2016 | Development
Share:
Share this page on Facebook
Share this page on Twitter
Share this page on Twitter
Pin this page on Pinterest
Send this link in an email message
Internet Explorer and Edge have a vendor-prefixed -ms-high-contrast media feature which allows developers to detect if the user is currently in Windows High Contrast Mode, and to apply specific additional style rules in that situation.
The media feature supports three values that can be tested: active, black-on-white and white-on-black. While on the face this feature seems pretty useful, it arguably provides authors with very little actionable information.
Windows High Contrast Mode provides users with a selection of different ready-made high-contrast themes. For instance, in Windows 10 the user can choose between “High Contrast #1”, “High Contrast #2”, “High Contrast Black” and “High Contrast White”. In addition, users can redefine any of the colours used and save their own custom high contrast theme.
Windows 10 High Contrast “Choose a theme” settings dialog