Re: [csswg-drafts] [css-color-4] Serialization/normalization of color() (and other advanced color functions) (#4826)

I don't think we should convert between colorspaces when serializing, and by colorspaces I mean the space the color is represented in internally (so hsl/hwb/rgb/gray are all in the sRGB colorspace, lab/lch are in the L*a*b colorspace, `color(foo, ...)` is in the foo colorspace.

So I think `color(display-p3, ...)` should serialize as `color(display-p3, ...)`, `lab()` and `lch()` should serialize as either lab or lch.

We have to then decide how`color(sRGB, ...)` and `color(lab, ...)` serialize. My slight preference is preserve them as `color()` functions.

-- 
GitHub Notification of comment by smfr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4826#issuecomment-594751909 using your GitHub account

Received on Wednesday, 4 March 2020 19:42:24 UTC