[css-houdini-drafts] [css-typed-om] CSSUnparsedValue serialization and parsing do not roundtrip (#1021)

xiaochengh has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-typed-om] CSSUnparsedValue serialization and parsing do not roundtrip ==
The serialization of CSSUnparsedValue is [specified](https://drafts.css-houdini.org/css-typed-om-1/#unparsedvalue-serialization) as:

> For each `item` in `this`’s `[[tokens]]` internal slot:
> If `item` is a `USVString`, append it to `s`.

So `CSSUnparsedValue(['1', 'px'])` will be serialized as `1px`, which doesn't roundtrip with parsing.

Is this intentional? If so, can we add some clarification to the spec? Or should it be fixed?

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/1021 using your GitHub account


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

Received on Monday, 1 March 2021 19:39:24 UTC