- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Tue, 02 Aug 2022 15:52:11 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `color-contrast should distinguish fg from bg`. <details><summary>The full IRC log of that discussion</summary> <TabAtkins> Subtopic: color-contrast should distinguish fg from bg<br> <TabAtkins> github: https://github.com/w3c/csswg-drafts/issues/7359<br> <TabAtkins> chris: Most of the algos, you give two colors, and they generally denote one of them is lighter and the other is darker<br> <dbaron> (when skimming the list of algorithms you referenced... I only saw APCA that cared which was fg/bg)<br> <TabAtkins> chris: At least APCA, and som eothers, requires you to say which is the text and which is bg, and if you swap you don't get the same number<br> <TabAtkins> chris: wcg doesn't care<br> <una> q+<br> <TabAtkins> fantasai: two proposals in the issue<br> <TabAtkins> fantasai: both of them are suggesting an over/under keyword<br> <TabAtkins> fantasai: one of them puts it as first arg color-contrast(over white, ...) meaning white is bg<br> <TabAtkins> fantasai: this follows same pattern as gradients<br> <TabAtkins> fantasai: downside is because arg is a color, it looks like part of the color list<br> <TabAtkins> fantasai: other suggestion was to use keyword as divider color-contrast(white under ...)<br> <fantasai> https://github.com/w3c/csswg-drafts/issues/7359#issuecomment-1158668669<br> <TabAtkins> fantasai: argument against was it felt a little backwards about which keyword you used<br> <castastrophe> q+<br> <TabAtkins> lea: the way the comma works, it tends to have higher precedence than just words<br> <TabAtkins> lea: so using a word to separate from a comma-seaprated list, it looks like you have one big first entry in the list<br> <Rossen_> ack una<br> <TabAtkins> lea: But that's a problem with the current syntax<br> <dbaron> +1 to lea about comma versus space precedence<br> <TabAtkins> una: have we considered a slash rather than comma? like `red over / <color-list>`<br> <TabAtkins> una: seems to make it easier to separate<br> <lea> q+<br> <Rossen_> ack castastrophe<br> <TabAtkins> castastrophe: i love that solution<br> <TabAtkins> castastrophe: like the natural language read of "color over"<br> <TabAtkins> castastrophe: +1 to slash<br> <Rossen_> ack dbaron<br> <Zakim> dbaron, you wanted to suggest []<br> <TabAtkins> dbaron: suggest bracketed list<br> <TabAtkins> dbaron: grid tracks do this<br> <bramus> q+<br> <chris> +1 to a slash or some other way of grouping the list<br> <TabAtkins> una: my first thought was bracket list<br> <astearns> so `red over [<color-list>]`<br> <TabAtkins> una: just think it's more of a convention to use the slash<br> <Rossen_> ack lea<br> <TabAtkins> lea: issue with nested function...<br> <TabAtkins> TabAtkins: not function, just brackets around the color list<br> <TabAtkins> lea: oh, that's different<br> <TabAtkins> lea: we have a precedent of using slashes to separate parts within comma list, in backgrounds, so using it here with opposite precedence<br> <bramus> q-<br> <fantasai> TabAtkins: That was going to be my objection as well<br> <chris> looks like an array: white over [red, blue, violet]<br> <TabAtkins> fantasai: suggest we bikeshed over lunch<br> <bkardell_> 👉 red, black 👈<br> <TabAtkins> <br dur="1h 10m"><br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7359#issuecomment-1202881391 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 2 August 2022 15:52:13 UTC