Description:
I think that MediaWiki ignore „baseline-shift” in SVG files. Example: https://commons.wikimedia.org/wiki/File:Diazepam-BUGTRACKINGVERSION.svg. The 3 at the top should be as subscript.
The related SVG code is:
<text fill="#000" font-family="Arial" font-size="11pt" x="115.3" y="66.6395111337">H<tspan baseline-shift="sub" font-size="75%">3</tspan>C</text>
Workaround is:
- using instead the dy or y attribute (with extra <tspan>, also support in every SVG GUI editor which supports baseline-shift)
Since an update of librsvg baseline-shift="sub" works, but baseline-shift="-5px" still does not work, see f.e. T7792_Example_of_baseline-shift_using_explicit_value.svg or File:T7792_Fluoxetine_2.svg .
See Also:
https://gitlab.gnome.org/GNOME/librsvg/issues/129
https://bugzilla.gnome.org/show_bug.cgi?id=340047 RESOLVED FIXED