Re: [csswg-drafts] [css-values] when should values inside `mix()` be clamped? (#8158)

I would say (1). `mix()` uses the grammar of the property to interpolate the expressions, e.g.

```css
order: mix(0.5; 1; 9); /* (1+9)/2 = 5 */
aspect-ratio: mix(0.5; 1; 9); /* sqrt(1*9) = 3 */
```

so interpolating a negative length if the property doesn't understand negative lengths kinda seems wrong.

But an `interp()` function from https://github.com/w3c/csswg-drafts/issues/6697 that would basically be syntax sugar for `calc()` then would behave as (2).

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


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

Received on Wednesday, 30 November 2022 15:47:37 UTC