Open Bug 2082041 Opened 1 month ago Updated 16 days ago

Correct the forced-colors claims about chrome and about: pages in the HCM docs

Categories

(Core :: Disability Access APIs, task)

task

Tracking

()

People

(Reporter: dao, Unassigned)

References

Details

accessible/docs/HCMMediaQueries.md and accessible/docs/HCMCSSChecklist.md disagree with the style system, and with "High contrast mode" in docs/code-quality/coding-style/css_guidelines.md, in a few places:

  • HCMMediaQueries.md, "So what do I use?", counts the style sheets of about: pages as chrome style sheets. PreferenceSheet::PrefsKindFor gives chrome prefs only to a document in a chrome docshell, so about: pages get forced colors like any web page.
  • HCMCSSChecklist.md, Check 2 table, lists Windows HCM under forced-colors: active. Windows HCM puts chrome in forced-colors: requested; only content reaches active, the only state where colors are actually forced.
  • Both docs say prefers-contrast: more matches above 7:1. The code (nsMediaFeatures.cpp) uses a ratio of 7 or higher.

Also, the HCM subagent prompt in .claude/skills/accessibility-frontend-review/SKILL.md expects 14 checks ("Checks 11–14", "N/14"), but HCMCSSChecklist.md has 12.

Depends on: 2071613
See Also: 2071613 →
You need to log in before you can comment on or make changes to this bug.