Re: [csswg-drafts] [css-values-5] Add `spread()` to CSS (#8391)

@tabatkins

> (This does make me lean towards spread2(), fwiw, because making it unambiguously a thing only usable in custom properties probably avoids this sort of confusion with JS's ... operator.)

Yeah, I could lean towards option 2 as well, though I think it would help to whitelist certain usages of `spread()` like using it within the `random-item()` function.

If we were to employ some kind of list/set function that actually houses lists of args and makes them reusable, then it may be worth discussing my other comment and how such a function could benefit all `random-item()`, `nth()`, and `spread()`. However, I'm not sure if that discussion would be best had here or in another thread.

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


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

Received on Thursday, 2 February 2023 21:37:43 UTC