Re: [csswg-drafts] [css-color-4] Clarify serialization of rgb()/rgba() functions that have `none` components (#6959)

Good catch!

Because the comma-separated form is preferred mainly due to greatest backward compatibility, and because `none` is new, it would seem to make sense to serialize in the non-legacy form in that case.

On the other hand, allowing `none` everywhere is a bit of a heavy hammer and I would also be fine with just saying that `none` serializes as `0` here because I can't really see a use case for preserving `none` in RGB values. And in HSL or HWB it will serialize as `rgb()` in any case, with conversion to 0 for the hue if that was `none`.

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


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

Received on Monday, 17 January 2022 17:59:12 UTC