mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix top right border radius (#2522)
This commit is contained in:
parent
7222aba1b4
commit
ba172678f0
@ -91,7 +91,7 @@ export class BoundCurves {
|
||||
? getCurvePoints(
|
||||
bounds.left + Math.min(topWidth, bounds.width + borderLeftWidth),
|
||||
bounds.top + borderTopWidth,
|
||||
topWidth > bounds.width + borderLeftWidth ? 0 : trh - borderLeftWidth,
|
||||
topWidth > bounds.width + borderRightWidth ? 0 : trh - borderRightWidth,
|
||||
trv - borderTopWidth,
|
||||
CORNER.TOP_RIGHT
|
||||
)
|
||||
|
@ -63,6 +63,13 @@
|
||||
border-radius: 200px;
|
||||
}
|
||||
|
||||
.box7 {
|
||||
border-width: 10px 10px 10px 1px;
|
||||
border-left-color: transparent;
|
||||
border-top-color: red;
|
||||
border-right-color: green;
|
||||
}
|
||||
|
||||
.gauge{
|
||||
display: inline-block;
|
||||
width: 100px;
|
||||
@ -91,6 +98,7 @@
|
||||
<div class="box box4"> </div>
|
||||
<div class="box box5"> </div>
|
||||
<div class="box box6"> </div>
|
||||
<div class="box box7"> </div>
|
||||
<div class="gauge gauge1"></div>
|
||||
<div class="gauge gauge2"></div>
|
||||
<div class="gauge gauge3"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user