W3C home > Mailing lists > Public > public-fxtf-archive@w3.org > May 2019

Re: [fxtf-drafts] [filter-effects-2] Add recolor() shorthand (#334)

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Fri, 10 May 2019 15:13:13 +0000
To: public-fxtf-archive@w3.org
Message-ID: <issue_comment.created-491324642-1557501192-sysbot+gh@w3.org>
I can see use cases for @gitmullany's proposal: grey-ing out a multi-color icon for a disabled function or otherwise forcing a multi-color icon to match a theme color.

It could also help with progressive enhancement if people are currently using [red icons + `hue-rotate()`](https://codepen.io/noahblon/post/coloring-svgs-in-css-background-images#css-filters-2) to control the colour (which gives better results than hacking with `sepia()` but it not as good as directly setting the color).

Basically, this would be equivalent to expanding `recolor(blue)` to `recolor(blue, blue)` instead of to `recolor(blue, white)`.

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/334#issuecomment-491324642 using your GitHub account
Received on Friday, 10 May 2019 15:13:14 UTC

This archive was generated by hypermail 2.3.1 : Friday, 10 May 2019 15:13:15 UTC