Re: [csswg-drafts] [css-cascade] Idea: Multiple Values for a Property (#9490)

Yes, concrete use-cases are needed for iterable and concatenable style properties.

Brainstorming, in CSS, there are different kinds of space-delimited values. Some are shorthand syntax conventions for other properties, e.g.:

```css
margin: 10px 20px 30px 40px;
```

Others are more set-like or list-like space-delimited values:

```css
transform: rotate(45deg) scale(1.5) translateX(10px);
```

One of the abstract uses of the syntax brainstorming and ideas, above, would be to enable new functionalities with respect to set-like and list-like style properties.

Interestingly, if they could be interpreted as space-delimited strings, iterable style property values could be backwards compatible. That is, `{x, y, z, w}` could also be interpreted as: `"x y z w"`.

Set-like or list-like property values, some of these presently space-delimited, could be considered for iteration and concatenation scenarios, if these capabilities were possible in CSS.

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


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

Received on Wednesday, 19 February 2025 21:45:53 UTC