I'm wrapping SVG text relative to a defined object using the "shape-inside" property. For example, text could be wrapped inside a cirle. Centering text horizontally inside the circle is easy by specifying "text-align: center", but how can the whole block of text (which wraps!) be aligned vertically with respect to the referenced "shape-inside" object?
The solutions presented here (Vertically align text inside of the svg circle) or here (vertical alignment of text element in SVG) do either not work (dominant-baseline does not do what I want, neither does "vertical-align" nor "alignment-baseline".
Minimal example:
<?xml version="1.0" ?>
<svg xmlns="http://www.w3.org/2000/svg">
<defs>
<circle x="10" y="10" r="50.0" id="border_circle"></circle>
</defs>
<circle x="10" y="10" r="50.0" style="fill: white; stroke: black" />
<text xml:space="preserve" style="font-size:12px; shape-inside:url(#border_circle); text-align: center" dominant-baseline="central"><tspan>A long text wraps inside a circle</tspan></text>
</svg>
This is what I get vs. what I want to achieve (viewed in Inkscape): https://imgur.com/a/ly0b7iP
Note: JavaScript is not a solution to my problem, because I'm not in a browser and do not have JavaScript available. I am looking for a pure SVG solution.