1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-24 05:02:10 +00:00
seirdy.one/content/notes/accessibility-audits-and-forced-colors.md
2022-11-15 14:54:01 -08:00

1.8 KiB

title date replyURI replyTitle replyType replyAuthor replyAuthorURI
Accessibility audits and forced colors 2022-11-15T14:54:01-08:00 https://adrianroselli.com/2022/11/your-accessibility-claims-are-wrong-unless.html Your Accessibility Claims Are Wrong, Unless… BlogPosting Adrian Rosell https://adrianroselli.com/

I love this blog post. Thank you for writing it. I must add one thing: every accessibility audit needs to test with forced colors. Countless sites claim to be accessible but fail this basic check.

For those less familiar: forced colors is a standard feature defined in the CSS Color Adjustment Module Level 1. It overrides colors with a user-preferred palette. Implementations include Windows High Contrast Mode and Firefox on all supported desktop platforms (I'm not sure about mobile).

Forced colors reveals violations of the Web Content Accessibility Guidelines level A success criterion 1.4.1, Use of Color. I use forced colors in Firefox every day, and often face issues. For examples: see Can I Use issue 6527, or this Kagi search feedback

Section 2.3 of the CSS Color Adjustment Module leaves much room for non-standard user-agent-specific behavior beyond the standard forced colors. Chromium, mobile Firefox, and Samsung Internet have their own "auto dark modes" which intelligently and selectively adjust colors on light-themed websites. Testing on all these configurations is hard; forced colors is a simpler, predictable place to get started.