Re: [csswg-drafts] [css-color-adjust-1] Limits on the `only` color scheme keyword (#3881)

I strongly regret caving in on this during the phone call, because I had not considered the algorithm properly when I said I could achieve what I wanted with `dark light only`. I checked and this is not accurate. As a result, I am strongly in favor of rescinding the `dark only` ban, which doesn't seem to provide any value to me.

It is absolutely incorrect to say that a website is not respecting the user choice when requesting `dark only` because as mentioned by @AmeliaBR before, each application could have its own toggle switch for themes and if the user chooses something there, this user decision needs to be enforceable somehow. I know many developers that use Visual Studio Code in dark mode but all their other apps in light mode, and that makes sense to them, and apps absolutely should be able to provide such mechanism without having to avoid using any platform-provided control. Visual studio code today doesn't use any native platform control, do we really want all apps to look like that?

Besides, in most cases, restyling all controls to enforce dark yourself is not going to work properly anyway, because styles do not have subtle enough control over some controls (like scrollbars, select menus, pop-overs and many parallel ui surfaces likes selection). These elements cannot be styled properly for dark mode because not enough information is known about the platform to have a native feel for the dark theme, so an arbitrary choice has to be made and that cannot possibly match all platforms.

Moreover, the argument given by @dbaron that Firefox on Linux cannot support a dark theme looks bogus to me. If an operating system does not provide a way to get dark form control theming, browsers can draw these control themselves using the fallback theme like they already do for light-theme control with non-default styles. There is nothing stopping any browser to do that. This would still look better than forcing a site to use light form controls with a dark theme otherwise.

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

Received on Wednesday, 1 May 2019 21:32:53 UTC