- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Tue, 02 Aug 2022 20:07:11 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Ranges of Candidate Colors`, and agreed to the following: * `RESOLVED: punt for now, revisit later` <details><summary>The full IRC log of that discussion</summary> <fantasai> Topic: Ranges of Candidate Colors<br> <lea> github: https://github.com/w3c/csswg-drafts/issues/7360<br> <emilio> lea: there's a discontinuity between how designers design UI and how the contrast-color() function works<br> <emilio> ... they often have a base color and adjust coordinates (usually lightness) to get sufficient contrast<br> <emilio> ... right now it's possible but you'd need to provide a bunch of colors to simulate a range<br> <emilio> ... it'd be nice if you could simplify that usage<br> <emilio> ... not sure if it would need special syntax, or even if we want to do this<br> <astearns> ack dbaron<br> <emilio> ... we might want to punt on it and do it only if people actually do this<br> <emilio> dbaron: when you suggested syntax, before you said gradient my initial reaction was to use the interpolation syntax<br> <lea> q?<br> <emilio> ... I think you could reuse the interpolation syntax without specifying the end<br> <emilio> ... it's basically gradient without direction / radial stuff<br> <emilio> ... other thought is that this is difficult to explain with multiple contrast functions<br> <lea> q+<br> <emilio> ... if you specify something that's a range of color we specify the order in which you process them in<br> <emilio> q+<br> <astearns> ack lea<br> <TabAtkins> q+<br> <emilio> lea: I think before we dive down into details we should decide if we want to pursue this<br> <emilio> ... what that syntax would look like is secondary<br> <astearns> ack emilio<br> <fantasai> emilio: I think I'd rather act on it for now<br> <fantasai> emilio: there are a bunch of things to figure out, e.g. what are the steps you use for lightness?<br> <fantasai> emilio: what's the resolution of all the colors you try?<br> <fantasai> emilio: you may try 1000s of colors to find somehting<br> <fantasai> emilio: seems a bit unpredictable, perf-wise<br> <lea> q+<br> <fantasai> emilio: I guess you can binary search, maybe?<br> <astearns> evaluating all the colors for multiple algorithms seems expensive<br> <fantasai> emilio: assuming contrast is alwasy increasing or decreasing<br> <lea> q-<br> <fantasai> emilio: so unless we find ppl actually doing this,<br> <dbaron> yeah, I think you can't assume that contrast is always increasing/decreasing<br> <fantasai> emilio: if you pass 1000 colors, then worst case you evaluate 1000 colors<br> <fantasai> emilio: For now I'd rather defer this<br> <fantasai> emilio: I'd rather get the bits we know we want right, and then if we want to extend, we can always do it<br> <astearns> ack TabAtkins<br> <emilio> TabAtkins: you can't assume contrast is monotonic if you interpolate hue<br> <emilio> ... so sampling frequency becomes important<br> <lea> I actually agree<br> <fantasai> s/rather act/rather punt/<br> <emilio> ... so I say we punt for now<br> <lea> RESOLVED: punt for now, revisit later<br> <lea> github: https://github.com/w3c/csswg-drafts/issues/5153<br> <emilio> github: https://github.com/w3c/csswg-drafts/issues/7360<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7360#issuecomment-1203164098 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 20:07:13 UTC