CSS class are not inherited to child text/tspan elements in SVG (not general)
Open, NormalPublic

Description

CSS class definitions for text elements are not inherited to the child tspan elements. See first version File:Global_Wind_Power_Cumulative_Capacity.svg (svg ; - 800px-PNG).

This is a long time known bug but I found no report here (also not on GNOME).


Version: unspecified
Severity: normal
See Also:
T68672: SVG style element ignored if no type attribute is specified

Details

Reference
bz66551
bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz66551.
bzimport added a subscriber: Unknown Object (MLST).

named class overruled a general element class

As bug 66672 is present the given example is very unlucky. So I attach a much better example (temporary uploaded here https://upload.wikimedia.org/wikipedia/commons/thumb/archive/b/bd/20140616194801%21Test.svg/120px-Test.svg.png)

So I must differentiate and change the bug.
All text should be green with exception of the first.
What happens are 2 things:

  • named class overruled a general (in this case higher) element class
  • tspan and text elements without coordinate attribute get ignored from a class (so this was at beginning my second faulty conclusion)

Attached:

Glrx added a subscriber: Glrx.Apr 30 2017, 6:21 AM

MW does not look at class, so bug is in librsvg. Not clear that it has been reported there.

JoKalliauer updated the task description. (Show Details)Sun, Nov 11, 12:39 PM
JoKalliauer updated the task description. (Show Details)