Correctly clip content that has border-radius (#399)

This commit is contained in:
Niklas von Hertzen
2014-10-07 19:11:24 +03:00
parent 6073928978
commit 5712b621ca
4 changed files with 6 additions and 1 deletions

2
dist/html2canvas.js vendored
View File

@ -1821,7 +1821,9 @@ NodeParser.prototype.paintNode = function(container) {
this.renderer.clip(container.clip, function() {
this.renderer.renderBorders(container.borders.borders);
}, this);
this.renderer.clip(container.backgroundClip, function() {
switch (container.node.nodeName) {
case "svg":
case "IFRAME":

File diff suppressed because one or more lines are too long