Re: [csswg-drafts] [css-backgrounds-4] `background-filter` (#4706)

You can use variables to handle that, if you need it - set that layer as `var(--bg, url(...))`, then set in :hover `--bg: filter(...);`.

But yeah, "making the entire bg stack partially transparent" does need something other than `filter()`. Solving that *completely* probably requires porting over SVG's filter tree (I have [a rough draft of a proposal for that!](http://tabatkins.github.io/specs/css-filter-rule/)), but we probably can hit a large chunk of the use-cases with a single-valued `background-filter` that just applies a filter to the whole composited stack, yeah.

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

Received on Tuesday, 12 May 2020 21:22:13 UTC