A simple -ms-high-contrast media feature test, showing that -ms-high-contrast:active evaluates to true when the “High Contrast #1” theme is chosen. Regardless of which specific colour scheme a user has chosen, -ms-high-contrast:active will evaluate to true when any of these high contrast themes are enabled. Windows 10 High Contrast “Choose a theme” settings dialog In addition, users can redefine any of the colours used and save their own custom high contrast theme. For instance, in Windows 10 the user can choose between “High Contrast #1”, “High Contrast #2”, “High Contrast Black” and “High Contrast White”. Windows High Contrast Mode provides users with a selection of different ready-made high-contrast themes. While on the face this feature seems pretty useful, it arguably provides authors with very little actionable information. The media feature supports three values that can be tested: active, black-on-white and white-on-black. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |