Re: [csswg-drafts] [css-images] Add easing functions to color stops (#1332)

The CSS Working Group just discussed `[css-images] Add easing functions to color stops`, and agreed to the following:

* `RESOLVED: Expand the color stop hint grammar with easing functions and define how gradients respond to that`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [css-images] Add easing functions to color stops<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/1332<br>
&lt;dael> TabAtkins: Put on by Lea. I can run with it<br>
&lt;dael> TabAtkins: There's a long thread. jist is color stops between gradients default to linear interp. Can supply an adjuster that does exponetial curve through that spot.<br>
&lt;dael> TabAtkins: People want more control over how colors ease between stops<br>
&lt;dael> TabAtkins: Suggestion developed in thread is allow color stop hints to be an easing function<br>
&lt;dael> TabAtkins: That describes the interpolation. There's a bit of details for how to do beziers that go outside 0-1. Can continue to extrapolate.<br>
&lt;hober> q+<br>
&lt;dino> wouldn't it behave the same as a color animation/transition if the bezier goes outside 0,1?<br>
&lt;dael> TabAtkins: Sounds reasonable. Haven't written. I think lea would take editorship if we approve<br>
&lt;astearns> ack hober<br>
&lt;dael> TabAtkins: Reasonable idea?<br>
&lt;dael> hober: Offhand that doesn't sound unreasonable. Concern is that CG is a graphics library that webkit uses and I don't think supports easing functions in this situation. might be a pain to impl<br>
&lt;dael> hober: It's only a vague concern<br>
&lt;dael> TabAtkins: Worst case you fill in intermediate stops<br>
&lt;dael> hober: Exactly. not terribly but inelegant. Not a huge concern<br>
&lt;dael> astearns: [reads dino in IRC]<br>
&lt;dael> TabAtkins: yes it would. Behavior matches animation when you go outside 0,1<br>
&lt;astearns> ack dbaron<br>
&lt;dael> dbaron: I don't remember if we added a control to let you change what space you're going through, srgb, linear rgb, lab...I don't know if added that but if we have or even if haven't seems worth thinking about syntax here would extend to that<br>
&lt;dino> q+<br>
&lt;dael> TabAtkins: I don't believe that's made it into spec. There has been plans, perhaps in color 5. Idea of a gradient across a color space is explored by lea and chris. Color space should be fine because these are between color stops and shouldn't conflict in syntax<br>
&lt;astearns> ack dino<br>
&lt;dino> don't worry<br>
&lt;dino> i'll type here. don't wait for me<br>
&lt;dbaron> s/lab.../lab, lch.  /<br>
&lt;dino> please explain what happens if they try to animate the bezier<br>
&lt;dino> in the spec<br>
&lt;dino> not now<br>
&lt;dino> animate the gradient<br>
&lt;dael> TabAtkins: I'm curious what you mean by "that". Presume it's if the gradient itself is animated and start and end use easing<br>
&lt;dino> yep - what tab said<br>
&lt;dino> just noting that<br>
&lt;dael> dbaron: I think another issue is no interp rules for beziers<br>
&lt;dael> TabAtkins: No one does smart interp of gradients. We could throw up hands and say you can't. Another way is define interop rules for easing functions. Agree spec should be clear<br>
&lt;dino> thanks!!<br>
&lt;dael> TabAtkins: Could open a second issue about gradient animation to expose if we want to continue having smart rules for animations or not<br>
&lt;dael> astearns: Other comments?<br>
&lt;dael> astearns: Should resolve to explore?<br>
&lt;dael> TabAtkins: Prop: Expand the color stop hint grammer with easing functions and define how gradients respond to that<br>
&lt;dael> astearns: Obj?<br>
&lt;dael> astearns: I would also add an issue about what to do with intrep<br>
&lt;dael> RESOLVED: Expand the color stop hint grammar with easing functions and define how gradients respond to that<br>
&lt;dino> fwiw, i think this will be the first place where we could potentially animate easing functions<br>
&lt;dael> astearns: One question- expect the current use of hints could be expressed with one easing function?<br>
&lt;dael> TabAtkins: not precicely<br>
&lt;dael> astearns: Current hint sort of adds another color stop with easing between beginning hint and hint end. That couldn't be a single easing function. Okay<br>
&lt;dael> astearns: Anything more on this?<br>
</details>


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


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

Received on Wednesday, 1 September 2021 23:25:47 UTC