Text elements do not take is_visible into account
I was looking at the code in element.rs and we have:
if values.is_visible() {
draw_ctx.with_saved_transform(Some(self.get_transform()), &mut |dc| {
...
However for elements that are children of text (TSpan etc) we do not implement draw()
but we create the collections of spans and then Text::draw()
draws all the spans... as far as I can see this does not take is_visible into account, so a TSpan would be drawn even if it has a style with display=none