multiple markers drawn

Bug #452629 reported by Thomas Holder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Medium
Unassigned

Bug Description

if both 'marker' and any of 'marker-end', 'marker-mid', 'marker-start' are given for some shape, both markers are drawn on top of eath other. Actually the 'marker' attribute is a shortcut to define all three (end/mid/start) at once, so should override their values.

Revision history for this message
Thomas Holder (speleo3) wrote :
su_v (suv-lp)
tags: added: markers svg
Revision history for this message
su_v (suv-lp) wrote :

tested on OS X 10.5.8:

1) Batik 1.7, Firefox 3.5.3, Safari 4.0.3 and Inkscape 0.46-2 render 'marker-start', 'marker-mid' and 'marker-end' and ignore 'marker' (diamond) for all nodes

2) Amaya 11.2 and Inkscape 0.46+devel r22467 render 'marker-start', 'marker-mid' and 'marker-end' and on top 'marker' (diamond) for all nodes.

Is there an SVG viewer that lets 'marker' override 'marker-start', 'marker-mid' and 'marker-end'?

Revision history for this message
Thomas Holder (speleo3) wrote :

it depends on attribute order, it seems that last attribute counts. So the order in my example is not good for demonstrating the effect. I'll attach another one, where start/mid/end are defined for the parent group (gets inherited) and the path itself only has 'marker'. Batik renders just the diamonds, inkscape r22417 renders both.

Inkscape 0.46 ignores 'marker' at all, so it's not a regression.

Revision history for this message
su_v (suv-lp) wrote :

1) Batik 1.7, Firefox 3.5.3 and Safari 4.0.3 render 'marker' (diamond) for all nodes and ignore 'marker-start', 'marker-mid' and 'marker-end'

2) Amaya 11.2 and Inkscape 0.46+devel r22476 render 'marker-start', 'marker-mid' and 'marker-end' and on top 'marker' (diamond) for all nodes.

I don't know in detail what the SVG spec says and how Inkscape should behave (given that it doesn't use the 'marker' attribute itself), but I confirm the multiple markers rendered in Inkscape r22476. Did you test the files with a validator?

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Thomas Holder (speleo3) wrote :

@suv: what is the validator supposed to find?

Revision history for this message
su_v (suv-lp) wrote :

You tell me - about the both the presence of marker and the 'marker-start/mid/end' attributes? But you are right, it wasn't a thoughtful comment - the case of the inheritance in the second example with groups clearly demonstrates how both attributes might be present yet one of them needs to take precedence. Sorry ;-) I'm an SVG/XML ignoramus - obviously!

Revision history for this message
su_v (suv-lp) wrote :

Raising importance given that the release notes 0.47 say among others in 'Notable bug fixes':
«The shorthand 'marker' property is now correctly interpreted (SVG test suite painting-marker-03-f.svg). »

Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
Beluga (buovjaga) wrote :

Still confirmed.

Arch Linux 64-bit
Inkscape 0.91 r13725

Revision history for this message
jazzynico (jazzynico) wrote :

Also reproduced on Windows XP with 0.92.x rev. 15032.

Changed in inkscape:
status: Confirmed → Triaged
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.