Re: [csswg-drafts] [css-color-5] Clarification of rgb() syntax (#8231)

> I allowed mixing in RCS because the channel variables happen to be percentages

Unrelated to this issue, but they should be numbers, not percentages. I think in general in RCS we should always pick number if number is allowed for a component, as it's more flexible. Furthermore, the [actual spec](https://drafts.csswg.org/css-color-5/#relative-RGB) has this bizarre text:

> r, g, and b are all [<percentage>](https://drafts.csswg.org/css-values-4/#percentage-value)s or [<number>](https://drafts.csswg.org/css-values-4/#number-value)s that correspond to the [origin color’s](https://drafts.csswg.org/css-color-5/#origin-color) red, green, and blue channels after its conversion to sRGB. 

How can they be either percentages OR numbers, lol? What was I thinking when I wrote this? 🤣

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


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

Received on Thursday, 22 December 2022 10:29:44 UTC