Re: [csswg-drafts] [css-color-4] Consider clarifying Highlight system color, and maybe adding a new system color for control background (#6008)

The CSS Working Group just discussed `[css-color-4] Consider clarifying Highlight system color, and maybe adding a new system color for control background`, and agreed to the following:

* `RESOLVED: Highlight color represents selected text color which is what you'd use for ::selection`
* `RESOLVED: Add keyword to represent selected item with name TBD`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [css-color-4] Consider clarifying Highlight system color, and maybe adding a new system color for control background<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/6008<br>
&lt;dael> emilio: we defined highlight system color as highlights. MacOS has 2 kinds, one for selection and one for stronger color<br>
&lt;Rossen_> q?<br>
&lt;Rossen_> ack leaverou_<br>
&lt;dael> emilio: The question is, wk exposes it and blink exposes via wk focus ring. Both colors are exposed, one with wk prefix. Question is, should highlight be the selection color or the other color?<br>
&lt;dael> emilio: Should we define a non-prefix of -wk-focus-ring?<br>
&lt;Rossen_> ack fantasai<br>
&lt;dael> fantasai: Reason we have system color is so authors can use forced colors in a meaningful way. If I recall there's a handful of colors in windows UI and took handful of colors in that and added a few more that were missing. I don't remember what highlight-colorw as supposer to represent, but should clarify for that.<br>
&lt;dael> emilio: On windows only 1 highlight color. Selection color is same as selected in styling<br>
&lt;chris> It was originally defined on Windows 95 and Java; it was already out of date by Windows 98<br>
&lt;dael> emilio: My point is that UA stylesheets should use system colors exclusively for this. Respect dark mode, forced colors works correctly. That can be magic<br>
&lt;fantasai> chris, the non-deprecated system colors are the set that matches Win10 forced colors mode<br>
&lt;fantasai> chris, that's what we need to align with<br>
&lt;dael> emilio: Ideally we would have 2 colors and I can remove prefixed version. We don't have one exposed in macOS accent color. If we say highlight should be selection I need a prefix for the other. Ideally we would avoid it. Id rather come up with a name for it and spec it<br>
&lt;dael> fantasai: First question is do we want to add separate keywords and second is what do we call them. Let's do first q first<br>
&lt;dael> emilio: chrishtr mentioned he wouldn't like to expose a system color but they're doing it.<br>
&lt;dael> emilio: Someone mentioned it on the last call<br>
&lt;dael> emilio: I wanted to make sure if there is concern we can address that<br>
&lt;dael> Rossen_: I'm unclear if this system color can be backed by actual system colors<br>
&lt;chrishtr> The comments were not from me. :)<br>
&lt;dael> emilio: browsers do different things. FF in some situations nervious about fingerprint. WK doesn't do highlight, but does the others.<br>
&lt;dael> Rossen_: System colors make sense across all systems as they exist now. This makes sense on some systems, not others<br>
&lt;dael> emilio: I think makes sense in all, but in some systems they're the same<br>
&lt;dael> emilio: On windows when you have select multiple color of highlighted item is same as selection color. Doesn't have to be<br>
&lt;dael> Rossen_: Weird to provide system colors from css and not toher way. System colros up till now were things in all systems and drive enough need to expose and uniform enough across platforms<br>
&lt;dael> Rossen_: This is slightly opposite to me. We want to impose there's 2 colors and hope in some systems they'll add a differnet color. TO me is backwards requirements and we can't expect platforms to take that and make the system color.<br>
&lt;dael> Rossen_: Certainly not backwards into OSs in use<br>
&lt;dael> emilio: Not sure I agree. You're right windows won't have sep color soon or ever. But that doesn't mean having 2 colors doesn't make sense. They're conceptually different, even if shown in the same color on windows<br>
&lt;dael> Rossen_: I think I made my point here. I can't add anything to make it clearer. Want to hear from others<br>
&lt;dael> fantasai: Agree with emilio they can map tot he same color. Question is do we add the value so systems that do distingiush have ability to do so<br>
&lt;dael> florian: A little confused by your point. If trying to add colors that don't make sense b/c on some systems you cannot currently answer what is the system color because thers' 2. If we add one and it's teal on both you can answer teal on both. but if we add a section value it lets the other system answer truthfully one is teal and one is blue<br>
&lt;dael> Rossen_: Where is this convo going?<br>
&lt;dael> fantasai: Two options. 1) define that the highlight color matches either text selection or the select box color. Have to pick b/c can be different on some platforms. That leaves open do we define a keyword to represent other<br>
&lt;dael> fantasai: For windows this q doesn't matter. For Mac it does. If you ask for highlight, which color are you getting?<br>
&lt;dael> Rossen_: Can anyone from apple answer this?<br>
&lt;dael> smfr: Currently it's the selection color. not opposed to exposing value to capture darker blue<br>
&lt;dael> florian: Given it's exposed already aren't you saying you need to expose both and you're okay picking one because you have both exposed?<br>
&lt;dael> smfr: I didn't follow.<br>
&lt;dael> fantasai: Highlight color represents selected text color. What you'd use for ::selection<br>
&lt;dael> smfr: Which is what we do now<br>
&lt;dael> fantasai: Resolve on that, then talk about adding new color?<br>
&lt;dael> smfr: Fine<br>
&lt;dael> Rossen_: What's the proposal?<br>
&lt;dael> fantasai: Highlight color represents selected text color which is what you'd use for ::selection<br>
&lt;dael> Rossen_: obj?<br>
&lt;dael> RESOLVED: Highlight color represents selected text color which is what you'd use for ::selection<br>
&lt;dael> fantasai: Do we want to add a keyword to represent selected item in a list-box? That color.<br>
&lt;dael> fantasai: If we don't when you're in forced-color you cannot match that color<br>
&lt;dael> Rossen_: I'm not sure if silence is...I'll take it as agreement we want the keyword<br>
&lt;dael> florian: Given it has a wk name I'd say yes<br>
&lt;dael> Rossen_: Is there a name?<br>
&lt;dael> fantasai: not yet<br>
&lt;dael> Rossen_: Prop: Add keyword with name TBD<br>
&lt;dael> Rossen_: Objections?<br>
&lt;dael> RESOLVED: Add keyword to represent selected item with name TBD<br>
&lt;dael> fantasai: No great ideas<br>
&lt;dael> Rossen_: Bikeshed in the issue<br>
</details>


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 31 March 2021 16:49:37 UTC