Re: [csswg-drafts] [css-values-5] *-interpolate() grammar can lead to confusing values (#12348)

I think it looks clearer by putting the options first, and the progress value closer to the stops

```
*interpolate() = *interpolate( [ global-options / ]? progress, stop, [  between-options? , stop ]# )
```

```css
color-interpolate(in hsl / 300px, 200px: red, 500px: green, 600px: blue)
```

Or just make it a separate argument? The current spec using `&&` seems to imply that the grammars of `global-options` and `progress` can't overlap, so this should also be fine

```
*interpolate() = *interpolate( global-options?, progress, stop, [  between-options? , stop ]# )
```

```css
color-interpolate(in hsl, 300px, 200px: red, 500px: green, 600px: blue)
```

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12348#issuecomment-3025212542 using your GitHub account


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

Received on Tuesday, 1 July 2025 19:09:14 UTC