-
Notifications
You must be signed in to change notification settings - Fork 746
Description
As discussed in #2943 and #3856 at the moment there is limited OS level support for detecting when high
or low
contrast is preferred in the prefers-contrast media query. When colors are being forced, an additional way to detect these preferences might be to compare the contrast ratio of the forced background color and text color.
Threshold values could be taken from the Web Content Accessibility Guidelines. For example, a contrast ratio below 4.5:1 (the lowest allowed contrast for AA text) would toggle low
for the media query and a contrast ratio at or above 7:1 (lowest for AAA text) would toggle high
.
This would interpolate well with existing extensions and otherwise that try and make websites high/low contrast by forcing colors on webpages.