[csswg-drafts] [css-variables-1] Expose pending substitution value? (#11055)

andruud has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-variables-1] Expose pending substitution value? ==
> [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);
```

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11055 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 11:00:58 UTC