Re: [csswg-drafts] [css-ui] Add a way for authors to indicate that they want dark-mode form controls etc (#3299)

Note that WebKit solves some of the complexity of dark and light mode colors by having special handling of CSS named colors. The named color can resolve to different values, depending on what mode you are in — like buttonText is dark in light mode, and white in dark mode. This proposal helps us know if the page expects those named colors and form controls to have different rendering, and not break the web by changing them on unsuspecting content.

So our html.css is actually pretty much the same as it was before dark mode, with just some tweaks to use more named colors instead of hardcoded color values.

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

Received on Tuesday, 11 December 2018 21:44:12 UTC