SVG: Doesn't render stroke of rect, if fill opacity is 0

I realized, that this SVG lib doesn’t render the border of rectangles, when the fill opacity is set to 0:

<rect id="SvgjsRect1008" width="313" height="448" stroke-opacity="1" stroke="#ff0d28" stroke-width="3" fill-opacity="1" fill="rgba(0, 0, 0, 0)" x="360" y="48" />

This example will render the stroke in the same opacity as the fill color. So it’s not rendered at all in this example. This, as far as I know, doesn’t correspond to the SVG standard.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (8 by maintainers)

Commits related to this issue

Most upvoted comments

done, thanks for the fixes @H1Gdev and @mrbean-bremen!

takes usually 30 minutes to be listed on nuget org. https://www.nuget.org/packages/Svg/2.4.3

@H1Gdev - are you done fixing, or do you want to add more PRs?

@tebjan: provided @H1Gdev is done - he did a good job fixing these opacity issues, which partly have been regressions. Maybe it makes sense to make another minor release (as asked by @AnReZa)?