Hi Jan, (2012/05/19 5:50), honyk wrote: > While there is a child element with the filter attribute set to 'none', the > filter of its ancestor is still aplied to it (FF and Chrome). > > Is it bug or according to the spec?
This is according to the spec. Specifically, this part: "When applied to container elements such as ‘g’, the ‘filter’ property applies to the contents of the group as a whole. The group's children do not render to the screen directly; instead, the graphics commands necessary to render the children are stored temporarily."[1] The filter property is not inherited so there's no need to set it to none. You can think of it like this: at the point where the filter property appears, the element and all of its children stop drawing to the screen and instead draw to 'SourceGraphic'. The filter can then use 'SourceGraphic' (or SourceAlpha) and apply its effects to the visual result of the element and all of its children at once. It doesn't apply to the children individually. Hope that helps, Brian [1] http://www.w3.org/TR/SVG11/filters.html#Introduction ------------------------------------ ----- To unsubscribe send a message to: [email protected] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

