- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Wed, 24 Sep 2025 16:00:41 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-values-5] *-interpolate() grammar can lead to confusing values`, and agreed to the following:
* `RESOLVED: Explore options for making a syntactic distinction between input and interpolation options.`
<details><summary>The full IRC log of that discussion</summary>
<fantasai> TabAtkins: kbabbitt noted that the interpolate puts the value we're interpolating first, then options, then a list of stops<br>
<fantasai> TabAtkins: he points out that this looks confusing because some of the options can be affecting output values<br>
<TabAtkins> background-color: color-interpolate(300px in hsl, 200px: red, 500px: green, 600px: blue);<br>
<fantasai> TabAtkins: but are placed next to the input value<br>
<fantasai> TabAtkins: 300px in hsl loos like it's modifying 300px<br>
<fantasai> TabAtkins: wanted to see if we could rearrange syntax to make it less confusing<br>
<fantasai> TabAtkins: oriol's suggestion was to put the options first<br>
<TabAtkins> color-interpolate(in hsl / 300px, 200px: red, 500px: green, 600px: blue)<br>
<fantasai> TabAtkins: this puts the options close to the 'interpolate(' word<br>
<lea> q+<br>
<fantasai> TabAtkins: uses a slash to separate the value out, to avoid syntactic ambiguity<br>
<astearns> ack lea<br>
<fantasai> lea: Not a strong objection, but I would prefer to avoid mixing slashes vs commas, because CSS is inconsistent in how it handles it<br>
<fantasai> lea: can we use a keyword?<br>
<lea> color-interpolate(in hsl at 300px, 200px: red, 500px: green, 600px: blue)<br>
<astearns> ack fantasai<br>
<oriol> q+<br>
<TabAtkins> fantasai: I haven't looked at this issue, but here's a wild idea. all the other values have a colon, what if you said `300px: in hsl`<br>
<lea> q+<br>
<TabAtkins> fantasai: so the first value is what we're interpolating, and options for the values<br>
<lea> qq+<br>
<astearns> ack oriol<br>
<fantasai> oriol: Another point is, I believe we can just use a comma as a separator as there's no grammar overlap<br>
<TabAtkins> oriol: something else I was saying is I think we can just use a comma as a separator, ther'es no grammar overlap<br>
<TabAtkins> oriol: agree with Lea that mixing slash and comma is a bit weird. so I think we can just use a comma<br>
<astearns> ack lea<br>
<Zakim> lea, you wanted to react to fantasai<br>
<fantasai> lea: Syntactically we want to distinguish prelude from list<br>
<fantasai> lea: So we want it to not look the same<br>
<TabAtkins> lea: to Elika, syntactically we want to distinguish the prelude from the other arguments. the more similar it is to other args the worse the readability is, I think<br>
<astearns> ack lea<br>
<TabAtkins> fantasai: I don't love having them in a different order. putting the value, the core thing you're acting on, last...<br>
<lea> `color-interpolate(at 300px in hsl, 200px: red, 500px: green, 600px: blue)` seems ok to me?<br>
<TabAtkins> fantasai: it's also often not '300px', it's something complicated like a var()<br>
<TabAtkins> fantasai: it's one of the most important parts of the function, the first thing you'll think about<br>
<fantasai> astearns: Sounds like we don't have consensus on a direction yet.<br>
<fantasai> RESOLVED: Explore options for making a syntactic distinction between input and interpolation options.<br>
</details>
--
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12348#issuecomment-3329655312 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 24 September 2025 16:00:42 UTC