- From: Sebastian Zartner via GitHub <noreply@w3.org>
- Date: Mon, 05 Jan 2026 10:40:07 +0000
- To: public-css-archive@w3.org
@ydaniv: > Personally, I don't think interpolating all from 0 makes more sense. Well, that needs to be discussed. But again, if we define to interpolate between noop and the specified value, we restrict the values that can be applied. E.g. you wouldn't be able to define a mask that interpolates between a brightness value of 0 and 100%. And it makes the filters inconsistent between each other, where some mean from 0 to some value (like for `blur()`) and others mean from 100% to some value (like `brightness()` or `contrast()`). > But anyway, do you have use-cases for this feature? Do you have examples for these in the wild? The blur effect in #13285 and some in #11134 are use cases for this. Another one is a vignette effect, which could be done via `filter: brightness(100%); filter-mask: radial-gradient(black, transparent);`. Also, different transition effects for presentation slides and view transitions could benefit from filter masking. > Why not simply pursue https://github.com/w3c/csswg-drafts/issues/13253 ? As you noted there, that's "about generally allowing to reuse the SVG filter effects via CSS syntax". This issue is about influencing the intensity of the effect. That's not possible at the moment, as far as I know. @damian-dp: The proposed masking approach is meant to cover (A), i.e. use the mask as a multiplier for the given filter value. Applied to your example, a mask value of 0 means a blur radius of 0px and a mask value of 1 means a blur radius of 24px. Sebastian -- GitHub Notification of comment by SebastianZ Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13288#issuecomment-3709882061 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 5 January 2026 10:40:08 UTC