[csswg-drafts] [css-color-4] Serialization needs to be updated for newly added xyz-d50, xyz-d65, oklab() and oklch() color spaces (#6834)

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

== [css-color-4] Serialization needs to be updated for newly added xyz-d50, xyz-d65, oklab() and oklch() color spaces ==
The serialization section of the CSS Color Module 4 spec, https://drafts.csswg.org/css-color/#serializing-color-values, needs to be update for the newly added predefined color spaces and color functions: `xyz-d50`, `xyz-d65`, `oklab()` and `oklch()`.

At the moment, I am assuming `oklab()` and `oklch()` serialize like `lab()` and `lch()` as specified in https://drafts.csswg.org/css-color/#serializing-lab-lch, but it should probably be made explicit.

For `xyz-d50`, `xyz-d65`, I am assuming that they serialize like `color(xyz ...)` and also have a 16 bit minimum, but again, making it explicit would be good.

One change from the current spec I would like to propose is changing the serialization of `color(xyz ...)` to `color(xyz-d65 ...)` so that we don't have track that this is an alias in the engine past parsing, allow us to canonicalize xyz to xyz-d65 as early as possible.

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


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

Received on Saturday, 27 November 2021 18:44:43 UTC