diff --git a/.gitignore b/.gitignore index 0968ac3..cabc648 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ node_modules/ .envrc server.js *.sublime-workspace +chromedriver.log \ No newline at end of file diff --git a/src/renderers/Canvas.js b/src/renderers/Canvas.js index f19d353..a8fe43c 100644 --- a/src/renderers/Canvas.js +++ b/src/renderers/Canvas.js @@ -94,7 +94,7 @@ _html2canvas.Renderer.Canvas = function( options ) { canvas.height = canvas.style.height = (!usingFlashcanvas) ? options.height || zStack.ctx.height : Math.min(flashMaxSize, (options.height || zStack.ctx.height) ); fstyle = ctx.fillStyle; - ctx.fillStyle = (zStack.backgroundColor === "transparent") ? "#fff" : zStack.backgroundColor; + ctx.fillStyle = (zStack.backgroundColor === "transparent" || zStack.backgroundColor === "rgba(0, 0, 0, 0)") ? "#fff" : zStack.backgroundColor; ctx.fillRect(0, 0, canvas.width, canvas.height); ctx.fillStyle = fstyle;