Markers not using ViewBox attribute
Bug #167161 reported by
Tavmjong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Confirmed
|
High
|
Bryce Harrington |
Bug Description
Inkscape draws the example marker from the SVG standard
incorrectly. See:
http://
I believe this is due to not taking the ViewBox
attribute into consideration when the marker is drawn.
To post a comment you must log in.
The W3 SVG test:
http:// www.w3. org/Graphics/ SVG/Test/ 20030813/ svggen/ painting- marker- 02-f.svg
also shows the problem.
Inkscape markers do not display correctly in Firefox trunk markerHeight
and in Opera 9. If viewBox and markerWidth/
attributes are added they will display correctly except:
- Opera displays an end marker at the wrong angle.
- Firefox trunk and doesn't like negative viewBox origins
and/or negative path node coordinates.
Markers without these attributes do display correctly in
Firefox 2beta1 and in Batik 1.6.
According to the SVG 1.1 standard the viewBox attribute is
not required. If markerWidth and markerHeight are not given,
they default to 3. Opera seems to be using these values to
set a clipping path (Opera also seems to ignore the
overflow:visible attribute).
A screen shot has been uploaded. The red markers are
Inkscape SquareL markers. The blue are modified to include a
viewBox, markerWidth, and markerHeight (with negative
values). The red dotted squares shows where the markers
should be.