Skip to content

[css-variables-1] Expose pending substitution value? #11055

Description

@andruud

Pending-substitution values 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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions