Closed biojet1 closed 9 months ago
I think it's because refX
and refY
are not supported yet. resvg
currently expects either of marker-start
, marker-mid
and marker-end
to be available.
You're using advanced SVG 2 features, they are barely supported by anyone:
And the reason you don't see markers is because we do not support context-fill
and context-stroke
(SVG 2 features). And while other implementation fallback to black, resvg, for some reason, fallbacks to hidden.
@LaurenzV we do support refX
and refY
.
Duplicate of #708
As of Chrome 124, context-fill and context-stroke are supported.
This can be tested later in Chrome Canary. CL: https://chromium-review.googlesource.com/q/5322726
Markers not showing
This svg:
Using Inkscape rendered as png:
Using ReSVG rendered as png:
Using USVG renderd as svg:
USVG converted the markers to \<path\/> and \<g\/> but sets fill="none" stroke="none" visibility="hidden"
Replacing stroke="none" to stroke="black" and visibility="hidden" to visibility="visible" and using ReSVG rendered as png: