Re: [csswg-drafts] [css-color-5] Make channel values in relative color syntax optional (#10689)

I don't think the difference between `oklch(from color(display-p3 1.2 -0.1 05) l c h)` and `oklch(from color(display-p3 1.2 -0.1 05))` is meaningful. ^_^

For the original case, while omitting the non-alpha components is grammatically distinguishable, I don't think it's a great idea for readability. You can't omit channels in the normal function version, which would mean the relative syntax diverges from the absolute syntax in more ways; currently it's just an addition (letting you use channel keywords).

Basically, I just don't think having to write `r g b` in `rgb(from var(--foo) r g b / .5)` is much of an imposition. If it really is, then having a more dedicated function, like `opacity(var(--foo) .5)` would be *even shorter and clearer*.

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


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

Received on Monday, 5 August 2024 20:20:09 UTC