W3C home > Mailing lists > Public > www-style@w3.org > February 2013

[filter-effects] @support condition for custom filters

From: Dirk Schulze <dschulze@adobe.com>
Date: Mon, 11 Feb 2013 15:05:08 -0800
To: www-style list <www-style@w3.org>
Message-ID: <7FFA8C98-9072-4817-97B1-A47EDD22B5A0@adobe.com>
Hi all,

The Filter Effects[1] specification defines the custom() filter function to extend the predefined filters by new, customized filters including CSS Shaders, but not limited to CSS Shaders. This was discussed and accepted by the SVG WG [2].

Feature detection is important to support future extensions of the spec and test for the availability. I have an action from the SVG WG to ask for a new condition 'filter' on the @support rule. This filter descriptor can take different feature keywords. For CSS Shaders I would suggest 'webgl' because of the relation to WebGL. More feature keywords can be added by future versions of Filter Effects allowing other or future shading languages and parameterized SVG filters. The filter condition would look like in the following demonstration:

@support filter: webgl {
	@filter curl {
		src: url(vertex.vs), url(fragment.fs);
		geometry: grid(4,5);
		parameters: transform scale(2,2);

I would like to ask for feedback, concerns or suggestions.


[1] https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html#custom-filter
[2] http://www.w3.org/2013/02/06-svg-minutes.html#item05
Received on Monday, 11 February 2013 23:08:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:26 UTC