W3C home > Mailing lists > Public > public-fxtf-archive@w3.org > February 2018

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

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Wed, 21 Feb 2018 23:25:26 +0000
To: public-fxtf-archive@w3.org
Message-ID: <issue_comment.created-367513222-1519255525-sysbot+gh@w3.org>
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:

/* 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:50:22 UTC