Re: [csswg-drafts] [cssom-1] How to serialize specified value of properties with a var()? (#6484)

Also, and related to #2515: `style = 'padding: var(--p); padding-top: var(--p)'` serializes to `padding-right: ; padding-bottom: ; padding-left: ; padding-top: var(--p);` .

It could be fixed with:

```diff
- If all of the component longhand properties for a given shorthand are pending-substitution values from the same original shorthand value, the shorthand property must serialize to that original (var()-containing) value.
+ If all of the component longhand properties for a given shorthand are pending-substitution values equivalent to the original shorthand value, the shorthand property must serialize to that original (var()-containing) value.
```

Ie. *equivalent* would mean a deep comparison of the component value lists but ignoring comments.

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


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

Received on Monday, 7 March 2022 07:34:01 UTC