GNOME Bugzilla – Bug 603550
Masking with solid white incorrectly creates transparency
Last modified: 2016-12-12 21:21:25 UTC
Created attachment 148875 [details] Rendering of mask_test.svg with rsvg-convert If you make a mask with a rect with the color #ffffff or "white" and 1 fill-opacity, the mask will actually make it semi-transparent. Mask it several times, and it will make it more transparent. Attacked SVG should be solid black in colored areas, but as rendered (see png) with librsvg-convert, it is not so solid.
Created attachment 148876 [details] This is how it should look (rendered with inkscape)
Created attachment 148877 [details] This is the SVG test case
Created attachment 149056 [details] [review] Patch to correct alpha issue Here's a patch to correct it. I tried to include a detailed comment to describe what the "magic" numbers were doing. It looks like there were some math issues originally, so this should fix it.
Thank you for the patch and the detailed comment! I've included this with your test as commit 29eddba37f8bc1d1686f41fa8eded9c1ce003d7d in the rustification branch.