[csswg-drafts] [filter-effects] `@filter` at-rule to substitute SVG `<filter>` element (#13253)

Crissov has just created a new issue for https://github.com/w3c/csswg-drafts:

== [filter-effects] `@filter` at-rule to substitute SVG `<filter>` element ==
[`<filter-value-list>`](https://drafts.csswg.org/filter-effects-1/#typedef-filter-value-list), as used in the `filter` and `backdrop-filter` properties, currently consists of URLs or predefined filter functions. The URLs refer to SVG `<filter>` elements act as [custom filter sources](https://drafts.csswg.org/filter-effects-1/#FilterElement). 

I believe there should be a CSS-only way to specify custom filters. The usual approach would be an at-rule and the intuitive name would be `@filter`. This should *not* mirror the SVG element 1:1, obviously, though strive to match or even exceed its possibilities. 

I have no more concrete proposal, but was surprised this was not tracked as an issue yet.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13253 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 20 December 2025 10:38:40 UTC