Inheritable style attributes no longer inherit when they're in <svg> element in 2.41.2
In 2.41.2
, inheritable style attributes (e.g. fill
, stroke
, and opacity
too) no longer inherit to the child elements when they're in <svg>
element. As a result, if the child elements don't have style attributes, they will be displayed in black.
Here's an example of SVG code. This should be displayed in translucent red, but it's actually displayed in black (click to download):
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" fill="red" opacity="0.5">
<circle cx="64" cy="64" r="32"/>
</svg>
It seems to inherit correctly when the style attributes are in <g>
element (click to download):
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128">
<g fill="red" opacity="0.5">
<circle cx="64" cy="64" r="32"/>
</g>
</svg>
I have confirmed this issue in Arch Linux with librsvg 2.41.2
and it doesn't seem to happen in 2.41.0
.
(Meanwhile, apps that do not use librsvg such as Firefox, Chrome, Inkscape etc. will display properly.)
Edited by nana-4