mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Correctly clip content that has border-radius (#399)
This commit is contained in:
parent
8756d5d860
commit
4183f86d7c
2
dist/html2canvas.js
vendored
2
dist/html2canvas.js
vendored
@ -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":
|
||||
|
2
dist/html2canvas.min.js
vendored
2
dist/html2canvas.min.js
vendored
File diff suppressed because one or more lines are too long
@ -281,7 +281,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":
|
||||
|
@ -9,6 +9,7 @@
|
||||
<img src="../../assets/image.jpg" />
|
||||
<img src="../../assets/image.jpg" style="width:50px;height:400px;" />
|
||||
<img src="../../assets/image.jpg" style="width:500px;" />
|
||||
<img src="../../assets/image.jpg" style="width:100px;border-radius:50px;" />
|
||||
<img src="../../assets/image.jpg" style="width:500px;height:40px;" />
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user