Skip to content

[css-color-5] Should relative rgb()/rgba() and relative hsl()/hsla() serialize exactly as declared? #10327

@weinig

Description

@weinig

In CSS Color 5, the serialization of relative colors is defined with the following:

The serialization of the declared value of a relative color function is a string identifying the color function in all-lowercase, followed by "(from ", followed by the serialization of the declared value of the origin color, followed by a single space, followed by a singly-space-separated list of the arguments to the color function, followed by ")".

Does this mean that when serializing rgb(from ...)/rgba(from ...) that the specific spelling as declared, rgb vs rgba should be preserved? Or is ok to canonicalize to one or the other?

Similarly, for hsl(from ...)/hsla(from ...) that the specific spelling as declared, hsl vs hsla should be preserved? Or is ok to canonicalize to one or the other?

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Wednesday morning

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions