Last modified: 2012-10-26 09:27:00 UTC
When a <text> element in SVG contains several <tspan> elements stacked within each other, the SVG renderer does not render them in correct order. The following SVG fragment: <pre> <text x="0" y="150" id="textelement"> <tspan id="outer" style="fill:blue;stroke:none;"> ABC <tspan id="inner" style="fill:red;stroke:none;"> DEF </tspan> GHI </tspan> </text> </pre> should display as "ABC DEF GHI", but instead displays as "ABC GHI DEF". See error report at Wikimedia Commons [http://commons.wikimedia.org/w/index.php?title=Commons:Administrators%27_noticeboard/Attention&diff=prev&oldid=17965457 here], and test on en-wiki [http://en.wikipedia.org/wiki/File:Test_tspan.svg here].
MediaWiki doesn't render SVGs. this would be an rsvg bug.
Where would I report that then?
Okay, can anybody confirm what version of rsvg we are currently using at wikimedia.org? The rsvg 2.18.2 I downloaded on my local computer didn't reproduce the bug.
Assigning SVG bugs to Ariel -- need a cleanup pass to see what's fixed up by a librsvg upgrade, what can be resolved with fixes to our font configuration, what can be fixed on our end, and what still needs to be pushed upstream.
To test whether the svg renderer has changed from when this bug was reported I have today re-uploaded http://en.wikipedia.org/wiki/File:Test_tspan.svg as http://en.wikipedia.org/wiki/File:Test_tspan_uploaded_20100613.svg but it seems it still renders incorrectly.
*** Bug 22698 has been marked as a duplicate of this bug. ***
*** Bug 24349 has been marked as a duplicate of this bug. ***
Upstream bug https://bugzilla.gnome.org/show_bug.cgi?id=581108 has a patch by me.
giving SVG bugs back to the pool.
patch applied upstream.
Either the patch is not in our recent update of librsvg yet, or the patch does not fix the issue in the report, because the test image still shows the problem.
The patch has not been deployed on our servers, nor is it yet in a release version. (It's in upstream git master.)
This issue is fixed now. Testcase http://en.wikipedia.org/wiki/File:Test_tspan.svg is rendered correctly.