Marker orient="auto-start-reverse" on closed sub-paths
by Nikos Andronikos
HTML
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500">
<defs>
<marker id="arrowNW" orient="225" markerUnits="userSpaceOnUse" style="overflow:visible">
<path d="M25,0 L 0,-25 L0,25 z" fill="green"/>
</marker>
<marker id="arrowNE" orient="315" markerUnits="userSpaceOnUse" style="overflow:visible">
<path d="M25,0 L 0,-25 L0,25 z" fill="green"/>
</marker>
<marker id="arrowSE" orient="45" markerUnits="userSpaceOnUse" style="overflow:visible">
<path d="M25,0 L 0,-25 L0,25 z" fill="green"/>
</marker>
<marker id="arrowSW" orient="135" markerUnits="userSpaceOnUse" style="overflow:visible">
<path d="M25,0 L 0,-25 L0,25 z" fill="green"/>
</marker>
<marker id="arrowW" orient="180" markerUnits="userSpaceOnUse" style="overflow:visible">
<path d="M25,0 L 0,-25 L0,25 z" fill="green"/>
</marker>
<marker id="arrowS" orient="90" markerUnits="userSpaceOnUse" style="overflow:visible">
<path d="M25,0 L 0,-25 L0,25 z" fill="green"/>
</marker>
<marker id="arrowAuto" orient="auto" markerUnits="userSpaceOnUse" style="overflow:visible">
<path d="M25,0 L 0,-25 L0,25 z" fill="green"/>
</marker>
<marker id="arrowAutoStartReverse" orient="auto-start-reverse" markerUnits="userSpaceOnUse" style="overflow:visible">
<path d="M25,0 L 0,-25 L0,25 z" fill="green"/>
</marker>
</defs>
<!-- What browser does: all auto -->
<path d="M 40,100 h50 v50 h-50 z" marker-start="url(#arrowAuto)" marker-mid="url(#arrowAuto)" marker-end="url(#arrowAuto)" stroke="black" fill="none" stroke-width="2"/>
<!-- What browser does: all auto-start-reverse -->
<path d="M 140,100 h50 v50 h-50 z" marker-start="url(#arrowAutoStartReverse)" marker-mid="url(#arrowAutoStartReverse)" marker-end="url(#arrowAutoStartReverse)" stroke="black" fill="none"...