Re: [csswg-drafts] [css-transitions] Add control of colorspace used for transitioning colors (#7063)

The CSS Working Group just discussed `[css-transitions] Add control of colorspace used for transitioning colors`.

<details><summary>The full IRC log of that discussion</summary>
&lt;bramus> chris: css color-4 add something that others spec can reference: color interpolation method<br>
&lt;bramus> chris: already used for gradients<br>
&lt;bramus> chris: proposeal to add same  token to animations, transitions, and web animations<br>
&lt;bramus> chris: proposal since March without no comments<br>
&lt;bramus> chris: cant think of other way to do it<br>
&lt;emilio> q+<br>
&lt;bramus> emilio: the idea is to add a transition-interpolation property?<br>
&lt;flackr> q+<br>
&lt;bramus> chris: yes<br>
&lt;bramus> chris: same for animation-interpolation<br>
&lt;bramus> emilio: so it needs to be a list?<br>
&lt;bramus> chris: yes<br>
&lt;bramus> emilio: dont know, maybe this should be in keyframes?<br>
&lt;bramus> chris: that is part of the proposal<br>
&lt;bramus> emilio: feels weird that this is color specific but property name does not give hint<br>
&lt;bramus> chris: can put color in there<br>
&lt;bramus> emilio: could be confused otherwise<br>
&lt;bramus> +1<br>
&lt;bramus> emilio: other than that seems reasonable<br>
&lt;Rossen_> ack emilio<br>
&lt;bramus> chris: brian also added proposal for web animations in the issue<br>
&lt;bramus> emilio: do we expect a lot of ppl setting this to anything other than oklab?<br>
&lt;bramus> chris: that gets us in the whole webcompat issue<br>
&lt;flackr> q-<br>
&lt;bramus> chris: talking about an opt in<br>
&lt;bramus> chris: oklab and oklch will be obvious choices<br>
&lt;fserb> I think adding color to the name makes sense. (nit: Is it a problem to add "auto" on the shorthand?)<br>
&lt;bramus> emilio: if you do color-mix with two oklab colors, they mix in oklab right?<br>
&lt;bramus> chris: yes<br>
&lt;bramus> emilio: (???)><br>
&lt;bramus> chris: doesnt matter how you specify the orig colors. you can mix in other spaces<br>
&lt;bramus> emilio: maybe default should be oklab?<br>
&lt;bramus> chris: would be nice, but people have existing content<br>
&lt;bramus> emilio: maybe auto can do the right thing based on the defined colors?<br>
&lt;bramus> chris: auto means that legacy srgb mix in srgb. non-legacy colors mix in oklab.<br>
&lt;fserb> I think auto already does what emilio wants.<br>
&lt;bramus> Rossen_: in terms of feature itself, do you agree emilio? then can sweat details.<br>
&lt;flackr> q+<br>
&lt;bramus> emilio: seems reasonable, other than prop name<br>
&lt;bramus> chris: agree<br>
&lt;bramus> emilio: do we want to allow interpolationg different properties differently?<br>
&lt;bramus> emilio: eg background-color and color<br>
&lt;bramus> chris: i understand the requirement<br>
&lt;bramus> chris: if its about the keyframes, it means it applies to all color interpolations. a separate vlaue for each one, would need a ton of new properties<br>
&lt;Rossen_> ack flackr<br>
&lt;bramus> flackr: could we specify this as part of the color?<br>
&lt;flackr> q-<br>
&lt;bramus> chris: we are not going to solve this in 5 minutes<br>
&lt;bramus> Rossen_: good suggestion<br>
&lt;bramus> fantasai: so proposal is to add both transition-interpolation and animation-interpolation, where you can put the last one in a keyframe too?<br>
&lt;bramus> chris: yes<br>
&lt;bramus> fantasai: we also hav esuggestion from emilio to do it per property<br>
&lt;bramus> fantasai: this could be an addition?<br>
&lt;bramus> flackr: would affect the syntax<br>
&lt;bramus> emilio: need to know if we want this in the future<br>
&lt;bramus> fantasai: two possible ways to go about it, is to incorporate it in the color (cfr. flackr) and another option is to do sth similar as we do with transition<br>
&lt;bramus> chris: the latter seems like a better solution<br>
&lt;bramus> chris: would like to see it written out<br>
&lt;bramus> Rossen_: looks like this is expanding beyond orig proposal<br>
&lt;bramus> Rossen_: lets take back to issue<br>
&lt;bramus> chris: yes<br>
&lt;fantasai> s/with transition/with transition, and list out the properties named e.g. animation-color-interpolation: oklab color background-color sRGB outline-color, ...; /<br>
&lt;bramus> Rossen_: dont see issue we can tackle in 2 minutes …<br>
</details>


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


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

Received on Wednesday, 24 May 2023 17:00:08 UTC