W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

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

From: Timothy Hatcher via GitHub <sysbot+gh@w3.org>
Date: Tue, 11 Dec 2018 21:44:10 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-446373558-1544564649-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:40 UTC