[csswg-drafts] [css-color-5] Make all color components in Relative Color Syntax optional (#6938)

LeaVerou has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-5] Make all color components in Relative Color Syntax optional ==
Currently, when authors want to convert between color spaces, they need to do things like `lch(from var(--color) l c h)` or `color-mix(in lch, var(--color) 100%, black 0%)`, both of which are awkward. 

So, @svgeesus and I were discussing allowing for a no-arguments RCS that would allow things like `lch(from var(--color))`. But if we're going to have a syntax with 0 args and a syntax with N args, why not allow everything in between? This would allow authors to omit trailing components that are unchanged, allowing them to shorten things like `lch(from var(--color) calc(l * 1.2) c h)` to `lch(from var(--color) calc(l * 1.2))`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6938 using your GitHub account


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

Received on Sunday, 9 January 2022 16:27:07 UTC