Last modified: 2012-10-26 09:27:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19174, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17174 - SVG rendering: stacked tspan elements rendered in incorrect order
SVG rendering: stacked tspan elements rendered in incorrect order
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
SVG rendering (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/File:Tes...
:
: 22698 24349 (view as bug list)
Depends on:
Blocks: svg
  Show dependency treegraph
 
Reported: 2009-01-27 10:05 UTC by Fut.Perf.
Modified: 2012-10-26 09:27 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Fut.Perf. 2009-01-27 10:05:39 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].
Comment 1 River Tarnell 2009-01-27 10:17:03 UTC
MediaWiki doesn't render SVGs.  this would be an rsvg bug.
Comment 2 Fut.Perf. 2009-01-27 11:08:36 UTC
Where would I report that then?
Comment 3 Fut.Perf. 2009-01-27 14:37:30 UTC
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.
Comment 4 Brion Vibber 2009-08-03 16:53:52 UTC
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.
Comment 5 84user 2010-06-12 22:40:53 UTC
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.
Comment 6 Derk-Jan Hartman 2010-11-04 04:26:36 UTC
*** Bug 22698 has been marked as a duplicate of this bug. ***
Comment 7 Derk-Jan Hartman 2010-11-04 04:30:56 UTC
*** Bug 24349 has been marked as a duplicate of this bug. ***
Comment 8 Martin von Gagern 2010-11-04 10:41:48 UTC
Upstream bug https://bugzilla.gnome.org/show_bug.cgi?id=581108 has a patch by me.
Comment 9 Ariel T. Glenn 2011-09-18 09:28:20 UTC
giving SVG bugs back to the pool.
Comment 10 Derk-Jan Hartman 2011-12-04 13:25:37 UTC
patch applied upstream.
Comment 11 Derk-Jan Hartman 2011-12-04 21:42:43 UTC
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.
Comment 12 Brion Vibber 2011-12-04 22:37:55 UTC
The patch has not been deployed on our servers, nor is it yet in a release version. (It's in upstream git master.)
Comment 13 Derk-Jan Hartman 2012-10-26 09:27:00 UTC
This issue is fixed now. Testcase http://en.wikipedia.org/wiki/File:Test_tspan.svg is rendered correctly.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links