[csswg-drafts] Pull Request: Forced Colors Mode WebDriver Emulation

alisonmaher has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== Forced Colors Mode WebDriver Emulation ==
Forced Colors Mode is difficult to test via WPT because it is dependent on OS state (Window High Contrast) to trigger the feature to light up.

This change adds a webdriver extension command (https://alisonmaher.github.io/alisonmaher/css-color-adjust-1/Overview.html#emualte-forced-colors-mode) that keeps track of the current forced colors mode emulation state.

The change also updates the forced colors mode algorithm (https://alisonmaher.github.io/alisonmaher/css-color-adjust-1/Overview.html#forced) to inform the UA what to do when the forced colors mode emulation state is either `"light"` or `"dark"`.

This is a draft PR that I will be using to link to from a CSSWG issue to discuss adding support for this to the spec.

This change also fixes a few unrelated tabbing related issues in the CSS Color Adjust 1 spec.


See https://github.com/w3c/csswg-drafts/pull/11823


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

Received on Tuesday, 4 March 2025 19:04:45 UTC