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

Re: [csswg-drafts] [css-color-5] Undefined Hue angle when interpolating from neutrals (#4928)

From: Dan Burzo via GitHub <sysbot+gh@w3.org>
Date: Sun, 05 Jul 2020 15:56:28 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-653905537-1593964587-sysbot+gh@w3.org>
When interpolating a color whose hue is undefined with a color with a defined hue, it works well for the undefined hue to be considered equal to the defined one. 

A `lab(L 0 0)` color (equivalent to the deprecated `gray()` syntax) will produce `lch(L 0 0)`. When a color authored in a different color space is converted to `lch()` and its chroma ends up 0, it's fair to consider its hue undefined, to enable the behavior above. However, when authored in `lch()` directly, a color with zero chroma (e.g. `lch(50 0 0)`) I guess we should honor the explicit hue?

-- 
GitHub Notification of comment by danburzo
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4928#issuecomment-653905537 using your GitHub account
Received on Sunday, 5 July 2020 15:56:30 UTC

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