mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
support for opacity
This commit is contained in:
12
src/Core.js
12
src/Core.js
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user