SVGView icon indicating copy to clipboard operation
SVGView copied to clipboard

Allow opacity key in stylesheet to update fill and stroke opacities

Open ba01ei opened this issue 3 years ago • 0 comments

In the stylesheet of an SVG, we can have opacity, fill-opacity, and stroke-opacity. When opacity is used, it should affect both fill and stroke if fill-opacity and stroke-opacity are absent. Previously SVGView only supported fill-opacity and stroke-opacity from the stylesheet but not opacity.

Also added a sample SVG file to demonstrate that, and included it in the unit test.

ba01ei avatar Aug 02 '22 20:08 ba01ei