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

> I don't have a strong opinion on this, I think that `rgb(from pink / 0.3)` is kinda nice, I've often found myself only changing opacity and wanting such a simplified syntax.

RCS does two things, and thus use case requires only one of them:

1. Selects a colorspace, in which to do color and alpha manipulation
2. Returns a color in that colorspace.

The specific thing about alpha is that alpha manipulation is invariant of colorspace. So people trying to do that in a simple way end up having to needlessly specify irrelevant stuff. `oklab(from pink l a b /0.3)` is exactly the same color as `rgb(from pink r g b /0.3)` or `color(from pink display-p3 r g b /0.3)`.

If we add "omitting the color just changes the alpha" then I would also want the colorspace to be omitted in that case: `color(from pink / 0.3)`

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


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

Received on Tuesday, 14 January 2025 09:44:55 UTC