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
- Fix #437 'Doesn't render stroke of rect, if fill opacity is 0' issue. — committed to H1Gdev/SVG by H1Gdev 5 years ago
- Added test image from PR #433 to passing tests - added failing test images for issue #437 — committed to svg-net/SVG by mrbean-bremen 5 years ago
- Fix #437 'Doesn't render stroke of rect, if fill opacity is 0' issue. — committed to H1Gdev/SVG by H1Gdev 5 years ago
- Fix #437 'Doesn't render stroke of rect, if fill opacity is 0' issue. — committed to H1Gdev/SVG by H1Gdev 5 years ago
- Fix #437 'Doesn't render stroke of rect, if fill opacity is 0' issue. - Add test images. — committed to H1Gdev/SVG by H1Gdev 5 years ago
- Fix #437 'Doesn't render stroke of rect, if fill opacity is 0' issue. — committed to H1Gdev/SVG by H1Gdev 5 years ago
- Fix #437 'Doesn't render stroke of rect, if fill opacity is 0' issue. - Add test images. — committed to H1Gdev/SVG by H1Gdev 5 years ago
- Fix #437 'Doesn't render stroke of rect, if fill opacity is 0' issue. — committed to H1Gdev/SVG by H1Gdev 5 years ago
- Fix #437 'Doesn't render stroke of rect, if fill opacity is 0' issue. - Add test images. — committed to H1Gdev/SVG by H1Gdev 5 years ago
- Fix for #437 'Doesn't render stroke of rect, if fill opacity is 0' (#438) - fixes first part of #437 - 'Doesn't render stroke of rect, if fill opacity is 0' - added test images — committed to svg-net/SVG by H1Gdev 5 years ago
- Fix: Apply 'fill-opacity' if not set 'fill' (#439) - small refactor in SvgColourServer - fixes #437, second part - Apply 'fill-opacity' if not set 'fill' - added test images — committed to svg-net/SVG by H1Gdev 5 years ago
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)?