GNOME Bugzilla – Bug 332700
attributes not inherited from root svg element
Last modified: 2006-02-27 17:37:48 UTC
We're using rsvg to rasterize SVG images for Wikipedia; I'm currently testing 2.14.0 prior to upgrading the old version on our servers. Someone's reported a problem with an image which still renders incorrectly under 2.14.0; a polygon should be inheriting an empty fill from the root element but is rendering solid black instead: "I have a SVG file with fill="none" specified in the root <svg ...> element. With this setting, polygons are filled black by the WikieMedia engine. When I repeat the attribute in the containing <g ...> group, the polygon is correctly just stroked and not filled. The same is true for stroke width; it is inherited from parent <g ...> elements but not from the root <svg ...> element." The polygon renders transparently as expected with both Batik 1.6 and Inkscape 0.42. I'll upload the .svg and PNG output from Batik and rsvg here. For reference, the issue in our bug tracker: http://bugzilla.wikimedia.org/show_bug.cgi?id=5108
Created attachment 60193 [details] The affected SVG file
Created attachment 60194 [details] Rendering in Batik 1.6 Same in Inkscape 0.42.
Created attachment 60195 [details] Rendering with rsvg 2.14.0 The center diamond is unexpectedly solid black.
It was a fairly simple problem where we simply forgot to make <svg> elements parse style attributes. It is fixed now. Thanks for the report.