From 9b0c32c62c1903858c8860f1ac587888349afa9e Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Fri, 11 Jan 2013 20:36:07 +0200 Subject: [PATCH] Fix firefox pseudoelement bug for images --- src/Preload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Preload.js b/src/Preload.js index 1313334..e49d84f 100644 --- a/src/Preload.js +++ b/src/Preload.js @@ -276,7 +276,7 @@ _html2canvas.Preload = function( options ) { function getPseudoElement(el, which) { var elStyle = window.getComputedStyle(el, which); - if(!elStyle || !elStyle.content || elStyle.content === "none") { return; } + if(!elStyle || !elStyle.content || elStyle.content === "none" || elStyle.content === "-moz-alt-content") { return; } var content = elStyle.content + '', first = content.substr( 0, 1 ); //strips quotes