- From: Lea Verou via GitHub <sysbot+gh@w3.org>
- Date: Tue, 29 Oct 2024 18:34:14 +0000
- To: public-css-archive@w3.org
I think I would prefer decoupling the list specification from the list operations, so we can have a dedicated `<list>` type, which would allow us to accept lists as values to custom properties, or even regular properties. Ideally with a modifier, e.g. `<list[number]>`. There are many, _many_ use cases around lists and scales, e.g.: 1. Getting the nth item 2. Getting the N%th item (e.g. the midpoint) 3. Getting the closest item to a given value (rounding up/down/closest) 4. Getting the item N places before/after the closest item 5. Generating a scale via interpolation or a mix of fixed points and interpolated points. All of the above have several use cases around design tokens/design systems. Tackling 1 first is ok, but we should have a plan for the others down the line. It may also be worth thinking how lists of dimensions fit in to lists of colors (see #10034) or other types of values. -- GitHub Notification of comment by LeaVerou Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11103#issuecomment-2445050639 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 29 October 2024 18:34:15 UTC