Skip to content

[css-typed-om] CSSUnparsedValue serialization and parsing do not roundtrip #1021

Open
@xiaochengh

Description

@xiaochengh

The serialization of CSSUnparsedValue is specified 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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions