Last modified: 2014-06-16 15:48:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 13495 - SVG text-decoration (including underlining) doesn't render
SVG text-decoration (including underlining) doesn't render
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
SVG rendering (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: upstream
Depends on:
Blocks: svg
  Show dependency treegraph
 
Reported: 2008-03-24 20:58 UTC by FT2
Modified: 2014-06-16 15:48 UTC (History)
6 users (show)

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


Attachments
test case (665 bytes, image/svg+xml)
2008-03-25 04:52 UTC, FT2
Details
Diff of the changes between revision 1 and revision 2 (2.50 KB, patch)
2012-10-26 08:53 UTC, Derk-Jan Hartman
Details

Description FT2 2008-03-24 20:58:28 UTC
Compare:

http://en.wikipedia.org/wiki/Image:BLP_flowchart_2.svg
and
http://upload.wikimedia.org/wikipedia/en/thumb/f/f0/BLP_flowchart_2.svg/370px-BLP_flowchart_2.svg.png

Code being used:  <tspan text-decoration="underline"> ... </tspan>


(Note - may have other flaws in Gecko/Firefox. Underlining bug is visible in IE6 and Opera 9 at minimum.)
Comment 1 FT2 2008-03-25 04:52:04 UTC
Created attachment 4762 [details]
test case

Further example:  The following SVG code (SVG attached) will render in Opera and IE6 as three underlined texts, but rsvg ignores the underline attribute in all 3 lines:


<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">


<svg width="500" height="450" version="1.1" xmlns="http://www.w3.org/2000/svg">
   <text style="font-size:14px;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Arial">
      <tspan x="20" y='20' text-decoration="underline">Underline me!</tspan>
      <tspan x="50" y='40' style="text-decoration:underline">Underline me!</tspan>
      <tspan x="70" y='60'>The following text is <tspan text-decoration="underline">underlined</tspan>.</tspan>
   </text>

</svg>


Likewise the SVG demo for underlining at this page: http://www.svgbasics.com/font_effects_bold.html if saved as an SVG file, doesnt render any of the text decoration that the tutorial says should render, although if opened in IE or Opera as an SVG it does. (Note - you have to remove the "contentScriptType=text/ecmascript" to get mediawiki to upload it)
Comment 2 Brion Vibber 2008-03-25 17:45:08 UTC
Note that IE 6 does not support SVG. Anything that renders for you in IE 6 is actually some sort of third-party plugin.
Comment 3 FT2 2008-03-25 21:23:24 UTC
Indeed, technically it's the Adobe SVG add-on, which is pretty much a run-of-mill standard for svg rendering on IE. Apologies for the inaccuracy. 

I meant to say that it renders correctly on both the adobe plugin, and opera, which are what I have available to test on.
Comment 4 FT2 2008-03-26 04:19:12 UTC
Reported also at:
http://bugzilla.gnome.org/show_bug.cgi?id=524433
Comment 5 Brion Vibber 2009-08-03 16:53:51 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 6 Ariel T. Glenn 2011-09-18 09:15:03 UTC
giving SVG bugs back to the pool.
Comment 7 Derk-Jan Hartman 2011-12-04 13:34:11 UTC
This issue seems fixed after the recent librsvg update and then purging the file in question. Also reported as no longer reproducing upstream in librsvg 2.31.0
Comment 8 Derk-Jan Hartman 2012-10-26 08:53:49 UTC
Created attachment 11246 [details]
Diff of the changes between revision 1 and revision 2
Comment 9 Derk-Jan Hartman 2012-10-26 08:56:42 UTC
I accidentally closed the wrong ticket here. The issue is still visible in the earliest revision of the file
http://en.wikipedia.org/wiki/Image:BLP_flowchart_2.svg

Diff between the two files is attached
Comment 10 Bawolff (Brian Wolff) 2012-11-22 23:34:20 UTC
There's a comment on the upstream bug saying cannot reproduce - someone may want to check in with them.
Comment 11 PRO 2014-06-16 15:48:05 UTC
This bug seems fixed. The last report seems a cache issue also the attached diff shows only text change, also the earliest revision shows underline as it should.

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


Navigation
Links