- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 12 Jan 2022 17:56:16 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `CSS Color 5, color-extract()`, and agreed to the following: * `RESOLVED: Add color-extract() to Color 5 and continue work` <details><summary>The full IRC log of that discussion</summary> <fantasai> Topic: CSS Color 5, color-extract()<br> <fantasai> github: https://github.com/w3c/csswg-drafts/issues/6937<br> <fantasai> lea: Had discussions in the past, especially after Web Almanac<br> <fantasai> lea: when we saw that authors are often generating color variations by extracting color components and doing math on them<br> <fantasai> lea: we have relative color syntax for most of these use cases, already implemented in Safari<br> <fantasai> lea: however, don't have a way to combine components from multiple colors<br> <fantasai> lea: these are much more rare, but they do eist<br> <fantasai> lea: there was even a WG resolution for how to express a thing, which required combining output of one color and components of other color<br> <fantasai> lea: color-mix() used to be able to to do that in an awkward way, which we removed<br> <TabAtkins> (We ended up doing something different, but yeah it was part of Forced Colors Mode.)<br> <chris> q+<br> <fantasai> lea: at first Chris and I were thining to add e.g. lch-lightness() etc on a use-case basis<br> <fantasai> lea: but now thinking why not have a generic extraction function<br> <fantasai> lea: extra effort in terms of spec and implementation shouldn't be too high<br> <fantasai> lea: main argument is it's very verbose, but for common cases have other methods<br> <fantasai> lea: so I think the extra verbosity is OK<br> <fantasai> lea: and Tab already said he agrees with the idea in the issue thread<br> <smfr> q+<br> <Rossen_> ack chris<br> <fantasai> chris: I think it's verbose, but it makes sense and is clear<br> <fantasai> chris: i like re-using existing things like color space and components, etc.<br> <TabAtkins> yeah +1 to it, and i'm happy with how it slots into the color() component naming stuff<br> <fantasai> chris: Lea, you have component there, in Colro 5 have custom components for custom spaces , could you re-use?<br> <fantasai> lea: yes, could re-use<br> <fantasai> chris: great, I like the generality<br> <Rossen_> ack smfr<br> <fantasai> smfr: I'm trying to figure out is this an API for converting APIs between color spaces?<br> <fantasai> lea: no, this is an API for doing custom math with color components, that is more general than relative color syntax<br> <fantasai> chris: No if you want to convert color spaces, can already do that and it's very simple. But it gives you a complet color<br> <fantasai> smfr: if conversion under the hood and picking out components<br> <fantasai> smfr: should this just be a typed OM thing?<br> <fantasai> lea: JS API?<br> <fantasai> smfr: oh, this is a CSS API<br> <fantasai> smfr: I need to read the issue<br> <Rossen_> q?<br> <fantasai> chris: I agree the Color API should have the same functionality<br> <dino> q+<br> <fantasai> dino: Would be great to see an exampe in the gh issue of actually doing a design or palette with the color-extract() syntax<br> <miriam> +1 I like this proposal, and would use it<br> <florian_irc> fantasai: we should come back to this next week after people have time to read and think some more<br> <fantasai> fantasai: Seems like people need more time to review, maybe revisit next week. Seems likely to have support though.<br> <lea> +1<br> <fantasai> Rossen_: Seems we might be able to record a resolution today actually<br> <astearns> proposed resolution: accept the work in color-5<br> <fantasai> Rossen_: Any objectionsS?<br> <chris> syntax actually looks good to me, and tab already said he liked it<br> <fantasai> RESOLVED: Add color-extract() to Color 5 and continue work<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6937#issuecomment-1011307383 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 12 January 2022 17:56:17 UTC