Skip to content

Commit 6792d49

Browse files
committed
add negative margin case to margin-box
1 parent 4c8379a commit 6792d49

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

css-shapes-1/Overview.bs

+4-2
Original file line numberDiff line numberDiff line change
@@ -760,10 +760,12 @@ Shapes from Box Values</h2>
760760
enclosed by the outside margin edge.
761761
The corner radii of this shape are determined
762762
by the corresponding border-radius and margin values.
763-
If the ratio of <code>border-radius/margin</code> is 1 or more,
763+
If the ratio of <code>border-radius/margin</code> is 1 or more,
764+
or margin is negative,
764765
then the margin box corner radius is
765-
<code>border-radius + margin</code>.
766+
<code>max(border-radius + margin, 0)</code>.
766767
If the ratio of <code>border-radius/margin</code> is less than 1,
768+
and margin is positive,
767769
then the margin box corner radius is
768770
<code>border-radius + (margin * (1 + (ratio-1)^3))</code>.
769771

0 commit comments

Comments
 (0)