- From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
- Date: Tue, 22 Oct 2024 19:06:43 +0000
- To: public-css-archive@w3.org
> Would infinities be automatically included? > > ```css > round(down, 0, 2 3 5 7 11); /* -infinity or nan? */ > ``` I'd say NaN. Infinitely small or large numbers are unexpected in the given use cases. > Would the list need to be in non-decreasing order, or leave it up to the browser to sort it? For author's comfort, the UA should do the sorting. Though authors should still be encouraged to sort the values in increasing order. > Would the list accept duplicates? I guess it would be a way to have a finite list with one item... It should accept duplicates, but rather to be more resilient against mistakes than for providing a way for a single-item list. There's presumably no use case for a list with a single item. And differenciating finite and infinite lists by syntax is less error-prone. > 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. As noted above, I agree on that. Sebastian -- GitHub Notification of comment by SebastianZ Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11067#issuecomment-2430039778 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 19:06:44 UTC