Re: [Filter Effects] 'filter' property, SVG and filter functions

On Apr 20, 2012, at 3:29 PM, Tab Atkins Jr. wrote:

> On Fri, Apr 20, 2012 at 2:53 PM, Dirk Schulze <dschulze@adobe.com> wrote:
>> Hi,
>> 
>> Just some comments to the current filter specification.
>> 
>> * The current version of the specification says:
>> 
>> 5. The ‘filter’ property
>> 
>> The description of the ‘filter’ property is as follows:
>> 
>> ‘filter’
>> Value:          none | <filter-function> [ <filter-function> ]*
>> Initial:        none
>> Applies to:     All elements In SVG 1.1 it applies only to "container elements (except ‘mask’) and graphics elements"
>> Inherited:      no
>> Percentages:    N/A
>> Media:          visual
>> Animatable:     yes
>> 
>> The value <funciri> is missing that references an SVG 'filter' element (That is currently defined that way by SVG[1]). At the moment is listed as a <filter-function>. Does it mean that it is possible to combine shorthands and filter elements?
>> 
>> filter: blur(20px) url(#filter-element);
>> 
>> Don't we want to have backward compatibility and therefore list it separately, even if you want to combine them?
> 
> Yes, mixing them is possible.
> 
> Why would we want to list them separately?  More to the point, *how*
> would we list them separately?  I guess I'm just unsure what you mean
> by "separately", or how you think that would help with back-compat.

It was more a question if we have to take care about this. This is the definition of the 'filter' property in SVG 1.1:

Value: <funciri> | none | inherit

in comparison to Filter Effects 1.0:

Value:          none | <filter-function> [ <filter-function> ]*

I thought about:

Value: none | inherit | [<filter-function> | <funciri>]+

Note that 'inherit' is currently missing.

Greetings,
Dirk


> 
> ~TJ

Received on Saturday, 21 April 2012 05:03:35 UTC