Re: [csswg-drafts] [css-fonts-5] Proposal: Animating font-palette (#8922)

The CSS Working Group just discussed `Animating font-palette`.

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: Animating font-palette<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/8922<br>
&lt;drott> Slides: https://docs.google.com/presentation/d/1BFi93NfOUyziJRKciq6lnUOOo1hhgtibE10ZuELzCvo/edit#slide=id.g2554d2a7bfc_1_48<br>
&lt;fantasai> -> www-archive@w3.org<br>
&lt;fantasai> ???: Hi, I'm Monir, software engineer on Chrome team<br>
&lt;dbaron> s/Monir/Munira/<br>
&lt;fantasai> munira: Current way to animate font-palette is by JS<br>
&lt;fantasai> munira: let's say we want to animate between 2 palettes, in order to do that we need to first anually retriefve color records from font<br>
&lt;fantasai> [slide 2]<br>
&lt;chris> rrsagent, here<br>
&lt;RRSAgent> See https://www.w3.org/2023/06/28-css-irc#T16-56-57<br>
&lt;fantasai> after that, we need to interpolate each color<br>
&lt;dbaron> s/???/munira/<br>
&lt;fantasai> s/after/munira:/<br>
&lt;fantasai> munira: then overrid<br>
&lt;fantasai> munira: if someone can consider color nterpolation space<br>
&lt;fantasai> munira: lastly we need to override the colors from the interpolated values<br>
&lt;fantasai> munira: needs to be done once in each frame of animation process<br>
&lt;fantasai> munira: by making font-palette colors animatable we can animate using CSS<br>
&lt;fantasai> [slide 3]<br>
&lt;fantasai> munira: here you can see disrete vs smooth interpolation<br>
&lt;fantasai> munira: between pink and gray palettes<br>
&lt;fantasai> munira: when feature is implemented, can do it easily declaratively in CSS<br>
&lt;fantasai> [slide 4]<br>
&lt;fantasai> munira: here is syntax suggestion<br>
&lt;fantasai> munira: font-palette is represented by custom identifier<br>
&lt;fantasai> munira: and then animated<br>
&lt;fantasai> munira: if we wanted computed style in the middle, what would we get?<br>
&lt;fantasai> munira: we can't currently represent this<br>
&lt;fantasai> [slide 6]<br>
&lt;fantasai> munira: for that we introduce palette-mix() function to represent during animation<br>
&lt;fantasai> [slide 7]<br>
&lt;fantasai> munira: here you can see the syntaxes of the new mix function<br>
&lt;fantasai> munira: it's siimlar to color mix<br>
&lt;fantasai> munira: it should use OKLab for interpolation<br>
&lt;fantasai> munira: unless otherwise specified<br>
&lt;fantasai> munira: we also can introduce a new mix() function<br>
&lt;fantasai> [slide 8]<br>
&lt;fantasai> [slide 9]<br>
&lt;drott> s/we also can introduce a new mix() function/we also can introduce a new animation type, by mix() function/<br>
&lt;fantasai> munira: short version is animating font-palette using JS is complicated, but using the new function web authors can animate just using declarative CSS<br>
&lt;fantasai> munira: if you want to find out more, see GH issue<br>
&lt;fantasai> Rossen_: Thanks for the presentation, and for compressing your presentation, was really great<br>
&lt;fantasai> Rossen_: I'm sorry to press you for time like this<br>
&lt;fantasai> fantasai: What's the relation to the mix() function?<br>
&lt;drott> svgeesus: mix() function wouldn't work for this<br>
&lt;dbaron> svgeesus: ... as tabatkins pointed out in the issue<br>
&lt;fantasai> svgeesus: you're interpolating palettes not colors<br>
&lt;fantasai> fantasai: mix() should work, as long as start and endpoints are representable which they are<br>
&lt;drott> Yes, issue is: https://github.com/w3c/csswg-drafts/issues/8922 - feedback is welcome.<br>
&lt;fantasai> Rossen_: OK, wrapping up<br>
&lt;Rossen_> Zakim, end call<br>
&lt;Zakim> I don't understand 'end call', Rossen_<br>
&lt;Rossen_> Zakim, end meeting<br>
</details>


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


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

Received on Wednesday, 28 June 2023 17:04:54 UTC