font-variant="small-caps" / style="font-variant:small-caps" are ignored
Upstreaming from https://phabricator.wikimedia.org/T270836
Ref: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-variant
Steps to reproduce:
-
Pull https://upload.wikimedia.org/wikipedia/commons/archive/2/23/20201226141533%21Wikifunctions_wordmark.svg , basically:
<text x="78" y="16.5" style="font-family:Montserrat;font-weight:bold;font-style:normal;font-variant:small-caps;stroke:none;font-size:17px;line-height:1.6;text-anchor:middle;text-align:center"><tspan>Wikifunctions</tspan></text>
-
Open it in e.g.
eog
which useslibrsvg2-2.50.2
Expected outcome:
The PNG thumbnail looks like SVG; All letters are upper case; all letters except for first letter have less height than the first letter
Actual outcome:
In the PNG thumbnail, all letters except for first letter are lower case
Other info:
- Same problem in Inkscape 1.0.1 though (which AFAIK does not use librsvg2).
- No problem in Firefox 84 or Chromium 87.