Re: [csswg-drafts] [css-color-adjust-1] Allow a page to express a theme pref when the user doesn't (#3850)

The CSS Working Group just discussed `Allow a page to express a theme pref when the user doesn't`, and agreed to the following:

* `RESOLVED: Keep this language in the spec`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: Allow a page to express a theme pref when the user doesn't<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/3850<br>
&lt;dael> TabAtkins: According to early proposal from rune color scheme can be used in 2 ways, what you're okay with the user selecting and say what you must be opted into. If you say only dark you get dark.<br>
&lt;florian> q+<br>
&lt;jensimmons> There's a philosophical debate underneath all these details, about how much visual display could/should be under the control of the user vs browser vs author. 25 years of evolution of the web has already answered a lot of this.... the web started expecting 100% browser / user. We ended up at 100% author. Light/mode will change this... but imho, only so far.<br>
&lt;dael> TabAtkins: Middle ground is if they user doesn't have a preference please opt into this color scheme. This way pages that want to be dark can get dark without forcing the user into dark.<br>
&lt;dael> TabAtkins: Proposal is we interpret color scheme without the only keyword we opt the page into the first in the list if they user doesn't have a setting.<br>
&lt;dbaron> I don't know how to distinguish OS defaults from "user doesn't have a preference".<br>
&lt;Rossen_> q?<br>
&lt;dael> dbaron: I still think no preference is a complicated UI no one will try and get users to express. You can flip between users that look like this or like that. I don't picture someone building a UI for that<br>
&lt;dael> florian: I like reddit being dark on light. I don't want them to support. I like supporting site rendering.<br>
&lt;Rossen_> q?<br>
&lt;dael> TabAtkins: If it turns out no preference you don't use that part of algo. Once you do support no preference you already said you're okay with any. This prevents a browser that wants to support no preference from forcing everything to light<br>
&lt;florian> I like github being light, and arstechnica being dark. These are there branding, and I have no desired to override everything into being all light or all dark<br>
&lt;jensimmons> +1 to what dbaron said.<br>
&lt;jensimmons> We aren't going to have a complex set of web browser preferences to set a pref for each website, one by one.<br>
&lt;dael> fantasai: Current state of the web is no preference. If we want preferences to be an enhancement then we need to have a default setting that is no preference so there's no degredation. In the OS you can ask light or dark. You controls aren't your user preferences on the page. Adobe uses dark controls but drawn on light content.<br>
&lt;dbaron> Isn't the current state of the web 'light' rather than no preference?<br>
&lt;tantek> implicit 'light' is the same as no preference<br>
&lt;tantek> so I agree more with fantasai that current default is no preference<br>
&lt;dael> fantasai: Similar to rest of UI for an OS. You might want to have dark controls and a normal page. Current state, use case for dark controls is I'm in a dark room and want to switch everything. Light mode it's less likely you hate dark themes. Don't want to force websites to switch that off. As interpret bianary preferences it's not true we get only light or only dark for the user<br>
&lt;fantasai> dbaron, in terms of form controls yes, but not in terms of media queries. and these two need to integrate<br>
&lt;dael> tantek: Current UI there's either no preference or an explicit setting of dark. I don't think it's right to assume current setting is light mode.<br>
&lt;fantasai> dbaron, legacy pages won't specify 'color-scheme: light dark' so we will know that they need light form controls for compat<br>
&lt;AmeliaBR> jen: Why wouldn't we have preferences for each website? Most browsers remember my zoom level preference for each site &amp; allow me to easily change it. Why not colors?<br>
&lt;dael> florian: Based on websites today agree. How OI work macOS has a button for light and for dark<br>
&lt;florian> s/OI/UI/<br>
&lt;dael> Rossen_: Back to original issue- TabAtkins request has specific purpose. Not sure we're addressing that or getting close to accept/reject<br>
&lt;dael> florian: I think we've established it's harmless and desirable. Haven't established it will work.<br>
&lt;dael> AmeliaBR: About enabling UAs to have this option without conflicting spec<br>
&lt;dael> myles: Which OSs have or may have no preference?<br>
&lt;jensimmons> Do we have any requests from browser to have more complex controls? (What AmeliaBR is saying right now.) Has any browser asked for such control yet?<br>
&lt;dael> AmeliaBR: Not about OS level. About a browser that can say let websites use whatever color scheme they want rather than use my OS color scheme.<br>
&lt;dael> Rossen_: True for form controls<br>
&lt;fantasai> See also https://github.com/w3c/csswg-drafts/issues/3857<br>
&lt;dael> tantek: And things like scrollbars. Right now if a eb author want s adark theme they have to go through every stylistic and carefully make it dark. Being able to say i set a dark background and light text, hey browser can you do the rest for me is great.<br>
&lt;dael> tantek: This is another way to let authors do the smart thing easier then do things awkwardly<br>
&lt;jensimmons> What we really need to do is expose all the visual styling of form controls. Not just light/dark/foobar. So authors stop replacing form controls with JS + spans &amp; divs.<br>
&lt;fantasai> jensimmons, that's being worked on but it's a really hard problem<br>
&lt;dael> TabAtkins: This is one line in the spec that says if user has no preference use the first author preference. If there is no option for no preference you skip that line. It's future compate with no appriciable increase in complexity to the spec. It's good to aim for in the future.<br>
&lt;florian> I support keeping it in the spec<br>
&lt;bkardell_> seems good to keep as in the spec<br>
&lt;dbaron> I think the spec text is ok, but I don't think it's going to do the things people imagine it will do.<br>
&lt;AmeliaBR> +1<br>
&lt;dael> TabAtkins: If people want to remove we can discuss at F2F. I'd like to resolve to keep as spec<br>
&lt;dael> tantek: +1<br>
&lt;dael> fantasai: +1<br>
&lt;bkardell_> +1<br>
&lt;dael> Rossen_: Objections to keep this in the spec?<br>
&lt;dael> RESOLVED: Keep this language in the spec<br>
&lt;dauwhe> +1<br>
&lt;fantasai> https://github.com/w3c/csswg-drafts/issues/3857<br>
&lt;dael> fantasai: light vs no preference has a separate issue. I flagged it as for the F2F<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3850#issuecomment-497021324 using your GitHub account

Received on Wednesday, 29 May 2019 16:56:30 UTC