mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Add another border-radius test
This commit is contained in:
parent
364a8aac1c
commit
5b4a6c26ee
16
dist/html2canvas.js
vendored
16
dist/html2canvas.js
vendored
@ -3418,14 +3418,14 @@ function calculateCurvePoints(bounds, borderRadius, borders) {
|
||||
width = bounds.width,
|
||||
height = bounds.height,
|
||||
|
||||
tlh = borderRadius[0][0],
|
||||
tlv = borderRadius[0][1],
|
||||
trh = borderRadius[1][0],
|
||||
trv = borderRadius[1][1],
|
||||
brh = borderRadius[2][0],
|
||||
brv = borderRadius[2][1],
|
||||
blh = borderRadius[3][0],
|
||||
blv = borderRadius[3][1];
|
||||
tlh = borderRadius[0][0] < width / 2 ? borderRadius[0][0] : width / 2,
|
||||
tlv = borderRadius[0][1] < height / 2 ? borderRadius[0][1] : height / 2,
|
||||
trh = borderRadius[1][0] < width / 2 ? borderRadius[1][0] : width / 2,
|
||||
trv = borderRadius[1][1] < height / 2 ? borderRadius[1][1] : height / 2,
|
||||
brh = borderRadius[2][0] < width / 2 ? borderRadius[2][0] : width / 2,
|
||||
brv = borderRadius[2][1] < height / 2 ? borderRadius[2][1] : height / 2,
|
||||
blh = borderRadius[3][0] < width / 2 ? borderRadius[3][0] : width / 2,
|
||||
blv = borderRadius[3][1] < height / 2 ? borderRadius[3][1] : height / 2;
|
||||
|
||||
var topWidth = width - trh,
|
||||
rightHeight = height - brv,
|
||||
|
4
dist/html2canvas.min.js
vendored
4
dist/html2canvas.min.js
vendored
File diff suppressed because one or more lines are too long
@ -57,6 +57,12 @@
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
.box6 {
|
||||
height: 200px;
|
||||
width: 200px;
|
||||
border-radius: 200px;
|
||||
}
|
||||
|
||||
html {
|
||||
background: #3a84c3;
|
||||
}
|
||||
@ -69,5 +75,6 @@
|
||||
<div class="box3"> </div>
|
||||
<div class="box4"> </div>
|
||||
<div class="box5"> </div>
|
||||
<div class="box6"> </div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user