W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2020

Re: [csswg-drafts] [css-color-adjust] Re-add `only` to mean "don't auto-adjust me", per WebKit's behavior (#5089)

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Wed, 27 May 2020 21:28:42 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-634951280-1590614922-sysbot+gh@w3.org>
So, if we were to spec the Mac Mail behavior, my current understanding is that it would be something like:

> If the user's preferred color scheme is not among the listed color schemes (in the [`color-scheme` property](https://drafts.csswg.org/css-color-adjust/#color-scheme-prop)), the user agent **may** switch to `forced-colors` mode or otherwise modify the displayed colors to meet the user's preference (e.g., by using an inverted-color display).  The `only` keyword indicates that this type of modification is likely to be detrimental to the user experience.

There would need to be a note warning that `only` is just a suggestion: user agents may still use forced-color mode if that's what the user needs, and that all web content should be designed with that in mind. There should also be examples of sensible uses of `only` (e.g., color swatches on an store website, partially-transparent images that would disappear if the email's background color were inverted).

One other complication that would need to be defined: if you use `only` on a part of the page, how does that interact with [`forced-color adjust`](https://drafts.csswg.org/css-color-adjust/#forced), if a forced-color like effect gets applied to the rest of the page?

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5089#issuecomment-634951280 using your GitHub account
Received on Wednesday, 27 May 2020 21:28:44 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:07 UTC