[csswg-drafts] [css-color-adjust-1] Forced Colors Mode Webdriver Emulation (#11824)

alisonmaher has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-adjust-1] Forced Colors Mode Webdriver Emulation ==
[Forced Colors Mode](https://www.w3.org/TR/css-color-adjust-1/#forced-colors-mode) is difficult to test via WPT because it is dependent on OS state (Window High Contrast) to trigger the feature.

This proposal is to add a new WebDriver extension command that keeps track of the current forced colors mode emulation state (either `"none"`, `"light"`, or `"dark"`). The [Forced Colors Mode](https://www.w3.org/TR/css-color-adjust-1/#forced-colors-mode) spec text would then need to be updated for UAs to force Forced Colors Mode if this state is not `"none"` and change the mappings of system color keywords based on the emulation theme to a set color palette.

I have put together a rough draft of how this could look in https://github.com/w3c/csswg-drafts/pull/11823. I used the Win 10 Black and White themes for `"light"`, or `"dark"` color mappings, but these could be any colors we'd like.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11824 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 4 March 2025 19:14:18 UTC