diff --git a/src/render/bound-curves.ts b/src/render/bound-curves.ts index 0b260bd..6f19899 100644 --- a/src/render/bound-curves.ts +++ b/src/render/bound-curves.ts @@ -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 ) diff --git a/tests/reftests/border/radius.html b/tests/reftests/border/radius.html index 37136e1..1949c2f 100644 --- a/tests/reftests/border/radius.html +++ b/tests/reftests/border/radius.html @@ -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 @@
 
 
 
+