Skip to content

[css-color-4] Clarify serialization of rgb()/rgba() functions that have none components #6959

Closed
@weinig

Description

@weinig

CSS Color 4 indicates that none components are only allowed in the space separated syntax for rgb() / rgba() functions, but since rgb() / rgba() functions are serialized in the comma separated style, this leads to a weird case where the serialized form is not reparseable if any of the components are none. For example:

rgb(255 0 none)

should currently serialize as:

rgb(255, 0, none)

which is an invalid value.

Seems like either none should be allowed in the comma separated legacy form or serialization should be updated to specify a different serialization if none is used.

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