Fix firefox pseudoelement bug for images

This commit is contained in:
MoyuScript 2013-01-11 20:36:07 +02:00
parent 4b9371f0e5
commit c9e182c7a9

View File

@ -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