Re: [csswg-drafts] [css-values] Proposal: `round()` to a finite scale (#11067)

Would infinities be automatically included?

```css
round(down, 0, 2 3 5 7 11); /* -infinity or nan? */
```

Would the list need to be in non-decreasing order, or leave it up to the browser to sort it?

Would the list accept duplicates? I guess it would be a way to have a finite list with one item...

But IMO it can be confusing that providing 2 values results in a 2-values finite list, while providing 1 value results in an infinite list.

It may be better to introduce a new syntax. It could also be useful to round to intervals, e.g.

```css
round(var(--num), [0, 2 .. 3, 4, 5 .. 6])
```

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


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

Received on Tuesday, 22 October 2024 18:35:25 UTC