Fix firefox pseudoelement bug for images

This commit is contained in:
Niklas von Hertzen 2013-01-11 20:36:07 +02:00
parent 2bb926c7d0
commit 9b0c32c62c

View File

@ -276,7 +276,7 @@ _html2canvas.Preload = function( options ) {
function getPseudoElement(el, which) { function getPseudoElement(el, which) {
var elStyle = window.getComputedStyle(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 + '', var content = elStyle.content + '',
first = content.substr( 0, 1 ); first = content.substr( 0, 1 );
//strips quotes //strips quotes