Re: [csswg-drafts] [css-color-4] Color modifications proposal: extending color functions

I was a bit concerned about how this overlaps with [additive CSS](https://github.com/w3c/csswg-drafts/issues/1594)―assuming that happens sometime in the near future.

On that one hand, additive CSS seems to provide something similar, i.e. presumably one could write `border-color: hsl(0deg 50% -50%) !add` and we'd define it so it combines with the underlying value by converting as necessary to HSL first (and similarly for Lab etc. too).

However, I think getting additive CSS to apply to a color in an arbitrary CSS variable is sufficiently awkward (you'd have to have a separate rule to make the underlying value use the CSS variable) that this proposal makes sense in its own right. This proposal is also a lot more elegant when altering the color component in a more complex value.

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

Received on Thursday, 4 October 2018 01:35:14 UTC