Inkscape does not conform to "marker" in SVG spec?

General discussions about Inkscape.
Horus
Posts: 14
Joined: Mon Apr 21, 2008 11:24 pm

Inkscape does not conform to "marker" in SVG spec?

Postby Horus » Wed Nov 23, 2011 12:15 am

Hi,

There's this bug filed at Mozilla's bugzilla:
https://bugzilla.mozilla.org/show_bug.cgi?id=520133 (and a seemingly related one at https://bugzilla.mozilla.org/show_bug.cgi?id=320280)

In summary: It's about showing (or not) marker's arrow in SVG files exported from Visio. (Please note that in Visio, the "marker" is done with a "connector", if we follow Visio's terms).

Normally, SVG files exported from Visio have problem with Inkscape. But strangely, the exported SVG files in this case shows everything! :D

However, the same SVG files opened inside Firefox are missing arrowheads. But those guys in Mozilla (cf inside the bugs' discussions) are saying that showing the arrowhead is not in conformance. I'm not expert in SVG and can't say who's right or wrong. Of course, as an end-user, I'm happy that everything is shown without hassle :mrgreen:

I'm wondering if what they say is right or not that Inkscape is not in conformance regarding this. Please feel free to comment on those bugs.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Inkscape does not conform to "marker" in SVG spec?

Postby ~suv » Wed Nov 23, 2011 6:53 am

Horus wrote:I'm wondering if what they say is right or not that Inkscape is not in conformance regarding this.
I can't tell whether the Mozilla developers are right or not: just keep in mind though that Inkscape doesn't claim to fully implement the SVG 1.1 specification in its current stable releases (that is still a major goal on the roadmap for version 1.0). It could well be that Inkscape is wrong, and (all?) other SVG viewers - like Squiggle (Batik 1.7), Chromium as well as Opera 11 (which has the most complete SVG support among the modern web browsers according to http://www.codedread.com/svg-support.php) - have it right with these VISIO-generated SVG files.

Horus
Posts: 14
Joined: Mon Apr 21, 2008 11:24 pm

Re: Inkscape does not conform to "marker" in SVG spec?

Postby Horus » Thu Nov 24, 2011 3:28 am

Thanks for your reply.

For the record, let me paste the technical reply about "should or should not display arrow" from one of the comment here:
---------
As per the spec : http://www.w3.org/TR/SVG/painting.html#Markers

"SVG's user agent style sheet sets the ‘overflow’ property for ‘marker’ elements to hidden, which causes a rectangular clipping path to be created at the bounds of the marker tile. Unless the ‘overflow’ property is overridden, any graphics within the marker which goes outside of the marker rectangle will be clipped."
---------
I had tried to understand this but honestly I'm unable to :oops:

And let me attach some test cases for further investigation.
Attachments
arrow-head-missing-rendered-but-not-sure.png
Test sample 1 rendered by Adobe SVG viewer:
Arrow is rendered, but not sure if this is right or wrong
arrow-head-missing-rendered-but-not-sure.png (1.52 KiB) Viewed 1989 times
arrow-head-missing.svg
Test sample 1: (Visio) connector between two boxes
(2.93 KiB) Downloaded 172 times

Horus
Posts: 14
Joined: Mon Apr 21, 2008 11:24 pm

Re: Inkscape does not conform to "marker" in SVG spec?

Postby Horus » Thu Nov 24, 2011 3:30 am

Sample 2
Attachments
visio2003-rendered-but-not-sure.png
Test sample 2 rendered by Adobe SVG viewer:
Arrows are rendered, but not sure if this is right or wrong
visio2003-rendered-but-not-sure.png (6.8 KiB) Viewed 1988 times
visio2003.svg
Test sample 2
(4.88 KiB) Downloaded 173 times


Return to “General Discussions”