css-houdini-drafts
css-houdini-drafts copied to clipboard
[css-typed-om] CSSUnparsedValue serialization and parsing do not roundtrip
The serialization of CSSUnparsedValue is specified as:
For each
iteminthis’s[[tokens]]internal slot: Ifitemis aUSVString, append it tos.
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?
Nope, it's a mistake. I'll fix, thanks.
CSSUnparsedValue(['1', 'px']