Skip to content

Commit

Permalink
add negative margin case to margin-box
Browse files Browse the repository at this point in the history
  • Loading branch information
astearns committed Oct 15, 2019
1 parent 4c8379a commit 6792d49
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions css-shapes-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -760,10 +760,12 @@ Shapes from Box Values</h2>
enclosed by the outside margin edge.
The corner radii of this shape are determined
by the corresponding border-radius and margin values.
If the ratio of <code>border-radius/margin</code> is 1 or more,
If the ratio of <code>border-radius/margin</code> is 1 or more,
or margin is negative,
then the margin box corner radius is
<code>border-radius + margin</code>.
<code>max(border-radius + margin, 0)</code>.
If the ratio of <code>border-radius/margin</code> is less than 1,
and margin is positive,
then the margin box corner radius is
<code>border-radius + (margin * (1 + (ratio-1)^3))</code>.

Expand Down

0 comments on commit 6792d49

Please sign in to comment.