Reputation: 1262
I have a webapp which has code to render a (monochrome) SVG to a canvas element via the drawImage
function. The SVG is defined as having a white fill color, yet Edge will only render it in black. Does anyone know of a workaround for this behavior?
Upvotes: 2
Views: 1137
Reputation: 1262
My code was using a drop shadow for other parts of the canvas, and apparently Edge uses the wrong order for rendering and places the shadow in front of the SVG itself. This was a non-issue on other browsers, but on Edge it causes the image to appear entirely black.
Upvotes: 1