Re: [csswg-drafts] [css-color-5] Is color-adjust() needed, now that we have relative color syntax? (#6179)

@LeaVerou  wrote:

> Note that in another issue I proposed @color-profile should have a descriptor to specify component names. 

This descriptor has [been added](https://drafts.csswg.org/css-color-4/#descdef-color-profile-components)

> This would allow us to have RCS for custom color spaces (and we can just predefine for the predefined spaces).

Relative color syntax for the ``color()`` function has also [now been added](https://drafts.csswg.org/css-color-5/#relative-color%E2%91%A0), which references the ``components`` descriptor in the case of ``dashed-ident`` as color space.

@tabatkins wrote:

> Relative color syntax, on the other hand, can adjust all the channels at once, and can do arbitrarily complicated mathematical adjustments to them, including but definitely not limited to % adjustment.

Yes. It is (with the latest additions) strictly more powerful, arguably easier to read too.

I think the draft should be published with the current state of both `color-adjust()` and `RCS`; but we are now close to being able to decide the ultimate single way forward.



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


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

Received on Monday, 24 May 2021 13:42:43 UTC