After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 332700 - attributes not inherited from root svg element
attributes not inherited from root svg element
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
2.14.x
Other Linux
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2006-02-27 02:28 UTC by Brion Vibber
Modified: 2006-02-27 17:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The affected SVG file (5.14 KB, application/xml)
2006-02-27 02:29 UTC, Brion Vibber
Details
Rendering in Batik 1.6 (4.02 KB, image/png)
2006-02-27 02:29 UTC, Brion Vibber
Details
Rendering with rsvg 2.14.0 (2.50 KB, image/png)
2006-02-27 02:30 UTC, Brion Vibber
Details

Description Brion Vibber 2006-02-27 02:28:30 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
Comment 1 Brion Vibber 2006-02-27 02:29:13 UTC
Created attachment 60193 [details]
The affected SVG file
Comment 2 Brion Vibber 2006-02-27 02:29:55 UTC
Created attachment 60194 [details]
Rendering in Batik 1.6

Same in Inkscape 0.42.
Comment 3 Brion Vibber 2006-02-27 02:30:51 UTC
Created attachment 60195 [details]
Rendering with rsvg 2.14.0

The center diamond is unexpectedly solid black.
Comment 4 Caleb Moore 2006-02-27 17:37:48 UTC
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.