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

Thank you for doing this. I'd love to see this happen.

I'm curious about how to make this apply to the underlying value so that you can, for example, have a generic `saturate` class, or `desaturate` class for that matter. We _could_ define a syntax that applies to the cascaded value something like `font-size: larger` does but that's a [nightmare to implement](https://manishearth.github.io/blog/2017/08/10/font-size-an-unexpectedly-complex-css-property/) (I suspect there are still plenty of animation edge cases here in particular) so I think we probably don't want to go that route. Perhaps we just need to define this in such a way that [additive CSS](https://github.com/w3c/csswg-drafts/issues/1594) will work, particularly now that we have [definitions for how to add CSS values](https://drafts.csswg.org/css-values-4/#addition).

For example, with the current addition facilities for animation one can already bump up the green channel by adding `rgb(0, 128, 0)` to the underlying value but there's no facility for _subtracting_ from a channel, nor operating on, say, the luminance channel.

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

Received on Monday, 1 October 2018 23:49:39 UTC