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

From @andruud in #11055:

> > [Pending-substitution values](https://drafts.csswg.org/css-variables/#pending-substitution-value) must be serialized as the empty string, if an API allows them to be observed.
> 
> https://drafts.csswg.org/css-variables/#substitution-in-shorthands
> 
> Authors do trip over this behavior sometimes (https://issues.chromium.org/issues/40804066), and it's not ideal for cases where round-tripping via text is crucial, like serializing to MHTML.
> 
> Can we somehow expose the pending-substitution value? E.g.:
> 
> ```
> border-width: shorthand(border, 1px var(--x) black);
> ```

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


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

Received on Monday, 21 October 2024 19:14:19 UTC