support for opacity

This commit is contained in:
MoyuScript
2011-07-18 00:59:36 +03:00
parent fb2ec9c9fb
commit 235cc4445d
5 changed files with 63 additions and 77 deletions

View File

@@ -100,11 +100,15 @@ html2canvas.prototype.start = function(){
this.bodyOverflow = document.getElementsByTagName('body')[0].style.overflow;
document.getElementsByTagName('body')[0].style.overflow = "hidden";
var ctx = this.newElement(this.element, this.ctx) || this.ctx;
var stack = this.newElement(this.element,{
ctx:this.ctx,
opacity:this.getCSS(this.element,"opacity")
}) || this.ctx;
}
this.parseElement(this.element,ctx);
}
this.parseElement(this.element,stack);
}