librsvg rendering issue for small coordinates
librsvg seems to have a problem positioning tspan:s correctly when using decimal coordinates < 1.0. The two following documents render the same in Chrome, but differently in librsvg:
Both validates as proper SVG using https://validator.w3.org/check. The only difference in them is a scaling factor of 100 of their coordinate systems. This somehow leads to tspan resetting its x-position to that of the surrounding text tag (this only seems to happen for the first tspan).
This is rendered using Eye of MATE using librsvg2-2:amd 2.40.20-2 on ubuntu bionic:
redhog@glittertind:~$ ldd /usr/bin/eom | grep rsvg librsvg-2.so.2 => /usr/lib/x86_64-linux-gnu/librsvg-2.so.2 (0x00007fedf7e01000) redhog@glittertind:~$ dpkg -S /usr/lib/x86_64-linux-gnu/librsvg-2.so.2 librsvg2-2:amd64: /usr/lib/x86_64-linux-gnu/librsvg-2.so.2 redhog@glittertind:~$ dpkg -l librsvg2-2:amd64 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-=========================================-=========================-=========================-======================================================================================== ii librsvg2-2:amd64 2.40.20-2 amd64 SAX-based renderer library for SVG files (runtime)