Source code
Revision control
Copy as Markdown
Other Tools
<svg width="500" height="500"
<g>
<text x="125" y="30" font-size="14" fill="black">Marker Rendering Properties</text>
<!-- Fill property -->
<g>
<marker id="marker1" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth">
<rect width="10" height="10" fill="black" stroke="none" stroke-width="8"/>
</marker>
<text x="100" y="140" font-size="10" fill="black" stroke="none">Fill Property</text>
<path marker-start="url(#marker1)" marker-mid="url(#marker1)" marker-end="url(#marker1)" d="M 30 60 L 80 60 L 80 110 Z"
fill="black" stroke="none" stroke-width="8"/>
</g>
<!-- Stroke property -->
<g>
<marker id="marker2" viewBox="0 0 20 20" markerWidth="4" markerHeight="4" refX="10" refY="10" markerUnits="strokeWidth">
<rect width="20" height="20" fill="none" stroke="black" stroke-width="4"/>
</marker>
<text x="340" y="140" font-size="10" fill="black" stroke="none">Stroke Property</text>
<path marker-start="url(#marker2)" marker-mid="url(#marker2)" marker-end="url(#marker2)" d="M 270 60 L 320 60 L 320 110 Z"
fill="none" stroke="black" stroke-width="4"/>
</g>
<!-- Define marker element with parents setting painting properties -->
<g>
<marker id="marker3" viewBox="0 0 20 20" markerWidth="4" markerHeight="4" refX="10" refY="10" markerUnits="strokeWidth">
<rect width="20" height="20" stroke="black" fill="green" stroke-width="8"/>
</marker>
<marker id="marker4" viewBox="0 0 10 10" markerWidth="4" markerHeight="4" refX="5" refY="5" markerUnits="strokeWidth">
<rect width="10" height="10" fill="black" stroke-width="4" stroke="blue"/>
</marker>
</g>
<!-- Parent and specified properties -->
<g>
<text x="90" y="270" font-size="10" fill="black" stroke="none">Mixed Properties</text>
<path stroke="purple" stroke-width="4" marker-start="url(#marker3)" marker-mid="url(#marker3)" marker-end="url(#marker3)" d="M 30 190 L 80 190 L 80 240 Z" fill="orange"/>
</g>
<g>
<text x="340" y="270" font-size="10" fill="black" stroke="none">Mixed Properties</text>
<path stroke="purple" stroke-width="4" marker-start="url(#marker4)" marker-mid="url(#marker4)" marker-end="url(#marker4)" d="M 270 190 L 320 190 L 320 240 Z" fill="orange"/>
</g>
</g>
</svg>