mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix firefox pseudoelement bug for images
This commit is contained in:
parent
2bb926c7d0
commit
9b0c32c62c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user