Re: [fxtf-drafts] [filter-effects-2] Add a shorthand color-channel adjustment function similar to feComponentTransfer

One issue: the [`contrast()` color adjustment function for guaranteeing adequate contrast](https://drafts.csswg.org/css-color-4/#contrast-adjuster) probably does not make sense when applied to a full image layer. (It's quite different from the `contrast()` filter function, which changes pixel colors to move them closer/farther from medium gray).  However, as I've argued in https://github.com/w3c/csswg-drafts/issues/1627#issuecomment-318437824, I think this WCAG contrast color-calculation feature would be better served by creating a separate function for it, instead of trying to include it in `color-mod()`.

And while I'm here, a few more examples of how the other color adjusters *would* be helpful when applied as filters:

```css
/* Increase lightness, not just brightness (which has no effect on saturated colors) */
filter: color-adjust(lightness(200%));

/* Darken or add a color tint to a content image, 
   without needing a pseudoelement overlay */
filter: color-adjust(shade(30%));
filter: color-adjust(blend(orchid 15% hsl));
```



-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/256#issuecomment-367513222 using your GitHub account

Received on Wednesday, 21 February 2018 23:25:41 UTC