fill: transparent; in path draws as a black box

Bug #1735012 reported by Christian Vonrüti
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

The attached SVG renders incorrectly. It renders a transparent portion as black.

The path on line 6 uses the style "fill: transparent" which doesn't seem to be supported by Inkscape. Selecting the path in the object hierarchy, Inkscape says "Paint is undefined" and uses black paint instead.

Chrome/Firefox etc render this SVG without issues.

Tags: svg
Revision history for this message
Christian Vonrüti (3-cheistian-4) wrote :
Revision history for this message
Hachmann (marenhachmann) wrote :

When looking into the SVG specification, I cannot find that 'fill: transparent' is valid SVG code:
https://www.w3.org/TR/SVG/painting.html#SpecifyingPaint
https://www.w3.org/TR/SVG/types.html#ColorKeywords

Did I overlook the transparent keyword somewhere, perhaps?

What software did you use to create this?

Revision history for this message
Christian Vonrüti (3-cheistian-4) wrote :

No, I agree. I ended up checking the same pages that you linked by starting with the fill property definition.

I used vega's vg2svg utility to generate the SVG.

Sorry about that, I had run it through validator.nu with HTML + SVG 1.1 and it checked out.

I will log a bug against their project for this.

Do you implement stuff that's beyond the spec or what is your policy on this?

Revision history for this message
Hachmann (marenhachmann) wrote :

Sorry, just a user here. But I know that SVG compatibility is very important here.

The project rather tries to work on modifying the specs (see for example http://tavmjong.free.fr/blog/). That does not mean that Inkscape doesn't introduce its own 'extensions' to the XML, but - aside from the flowed text issue (will hopefully be solved in 0.93) and the mesh gradients, that might go the same way - always provides a fallback.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.