[css-typed-om] CSSUnparsedValue serialization and parsing do not roundtrip
xiaochengh opened this issue · 2 comments
xiaochengh commented
The serialization of CSSUnparsedValue is specified as:
For each
item
inthis
’s[[tokens]]
internal slot:
Ifitem
is 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?
tabatkins commented
Nope, it's a mistake. I'll fix, thanks.
zaylababy commented
CSSUnparsedValue(['1', 'px']