Re: [csswg-drafts] [css-values] Add a way to set longhands to the corresponding expansion of a shorthand value (#8055)

Something that I missed is that we usually turn longhands into shorthands, so this should be allowed in shorthands as long as the referenced shorthand covers all the longhands (it's a supershorthand).

So for example, in Backgrounds L3,

```css
background-position: from-shorthand(background: 10px 20px red);
```
would behave as

```css
background-position: 10px 20px;
```

And in L4 it becomes a shorthand so it would expand to

```css
background-position-x: from-shorthand(background: 10px 20px red);
background-position-y: from-shorthand(background: 10px 20px red);
```
and behave as

```css
background-position-x: 10px;
background-position-y: 20px;
```

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


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

Received on Saturday, 27 May 2023 15:11:57 UTC