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

weinig has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color] Should relative `rgb()`/`rgba()` and relative `hsl()`/`hsla()` serialize exactly as declared? ==
In CSS Color 5, the [serialization of relative colors](https://drafts.csswg.org/css-color-5/#serial-relative-color) 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?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10327 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 13 May 2024 15:37:20 UTC