1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00
Files
svgo/test/plugins/convertPathData.37.svg.txt

31 lines
961 B
Plaintext

Must preserve vertex for markers only path for consistent rendering across clients.
Must not add vertices if markers only path did not have commands other than M/m anyway.
See: https://github.com/svg/svgo/issues/1493
===
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 9">
<marker id="a" stroke="red" viewBox="0 0 5 5">
<circle cx="2" cy="2" r="1"/>
</marker>
<marker id="b" stroke="green" viewBox="0 0 5 5">
<circle cx="2" cy="2" r="0.5"/>
</marker>
<path marker-start="url(#a)" d="M5 5h0"/>
<path marker-start="url(#b)" d="M5 5"/>
</svg>
@@@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 9">
<marker id="a" stroke="red" viewBox="0 0 5 5">
<circle cx="2" cy="2" r="1"/>
</marker>
<marker id="b" stroke="green" viewBox="0 0 5 5">
<circle cx="2" cy="2" r="0.5"/>
</marker>
<path marker-start="url(#a)" d="M5 5z"/>
<path marker-start="url(#b)" d="M5 5"/>
</svg>