Re: [csswg-drafts] [css-color-adjust] Allow authors do define custom `color-scheme` values. (#9660)

`data:text/html,<input style="color-scheme: dark"><input style="color-scheme: light"><input style="color-scheme: light dark">` is a good demonstration.

The reason for your example appearing to not work is because of how color works. It's default value is CanvasText on html but then it inherits. So changing canvas text within the context of the section doesn't change how the CSS value is computed. If you add "color: CanvasText; background-color: Canvas;" to your example you'll see it works.

-- 
GitHub Notification of comment by lukewarlow
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9660#issuecomment-1845867842 using your GitHub account


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

Received on Thursday, 7 December 2023 18:10:06 UTC