W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2020

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

From: Simon Fraser via GitHub <sysbot+gh@w3.org>
Date: Wed, 04 Mar 2020 18:57:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-594751909-1583348231-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:02 UTC