There is a bug where an SVG doesn't inherit the opacity of its parent container div.
I have attached 3 examples:
no_opacity.html - this shows an SVG with no opacity applied, renders perfectly.
opacity.html - this shows an SVG with fill-opacity set at 50% on its groups (as recommended in this forum). However this shows up with hairlines both in the browser and the rendered PDF.
working.html - this shows the same svg as in no_opacity.html but with a 50% opacity applied to the parent div. Browsers render this perfectly (as a complete SVG with 50% opacity). However Prince doesn't apply the opacity to it at all in the PDF. This is the bug.
Can you please advise any workarounds or ways to get this SVG to render in the PDF at 50% opacity without the hairlines.
Thanks,
Rob
I have attached 3 examples:
no_opacity.html - this shows an SVG with no opacity applied, renders perfectly.
opacity.html - this shows an SVG with fill-opacity set at 50% on its groups (as recommended in this forum). However this shows up with hairlines both in the browser and the rendered PDF.
working.html - this shows the same svg as in no_opacity.html but with a 50% opacity applied to the parent div. Browsers render this perfectly (as a complete SVG with 50% opacity). However Prince doesn't apply the opacity to it at all in the PDF. This is the bug.
Can you please advise any workarounds or ways to get this SVG to render in the PDF at 50% opacity without the hairlines.
Thanks,
Rob