Skip to content

Commit 7809b81

Browse files
committed
[css-shapes] update interpolation section
1 parent 8859cc5 commit 7809b81

2 files changed

Lines changed: 12 additions & 52 deletions

File tree

css-shapes/Overview.html

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -530,45 +530,25 @@ <h3 class="heading settled heading" data-level=3.2 id=basic-shape-interpolation>
530530

531531
<p> <ul>
532532
<li>
533-
If both basic shapes are of the same type
534-
and not of type polygon:
535-
<ul>
536-
<li>Interpolate between each value.</li>
537-
</ul>
538-
</li>
539-
<li>
540-
If one basic shape is of type rectangle
541-
and the second of type circle or ellipse:
533+
For interpolating between two shapes that are type inset-rectangle, ellipse or circle:
542534
<ul>
543535
<li>
544-
Replace the circle/ellipse with
545-
a temporary rectangle of equal dimension.
536+
Replace each inset-rectangle with a temporary inset-rectangle with offsets relative to the margin-box.
546537
</li>
547538
<li>
548-
Set the values for rx and ry
549-
on the temporary rectangle to ‘50%’.
539+
Replace each circle and ellipse with a temporary inset-rectangle with offsets relative to the margin-box, and &lt;<a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-backgrounds-4/#border-radius title=border-radius>border-radius</a>&gt; values to make the inset-rectangle equivalent to the original circle or ellipse
550540
</li>
551541
<li>
552-
Interpolate between the two rectangles as above.
542+
Interpolate between each value of the temporary inset-rectangles.
553543
</li>
554544
</ul>
555545
</li>
556-
<li>
557-
If one basic shape is an inset rectangle
558-
and the second is of type rectangle, circle or ellipse:
559-
<ul>
560-
<li>
561-
Replace the inset rectangle with
562-
a temporary rectangle of equal dimension.
563-
</li>
564-
<li>
565-
Interpolate between the basic shapes as above.
566-
</li>
567-
</ul>
568546
<li>
569547
If both basic shapes are of type polygon
570548
and if both polygons have the same number of vertices:
571549
<ul>
550+
<li>
551+
If the polygons use a different relevant box, replace one of the polygons with a temporary equivalent polygon that uses the relevant box of the other.
572552
<li>
573553
Interpolate between each value.
574554
</li>

css-shapes/Overview.src.html

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -413,45 +413,25 @@ <h3 id='basic-shape-interpolation'>
413413

414414
<ul>
415415
<li>
416-
If both basic shapes are of the same type
417-
and not of type polygon:
418-
<ul>
419-
<li>Interpolate between each value.</li>
420-
</ul>
421-
</li>
422-
<li>
423-
If one basic shape is of type rectangle
424-
and the second of type circle or ellipse:
416+
For interpolating between two shapes that are type inset-rectangle, ellipse or circle:
425417
<ul>
426418
<li>
427-
Replace the circle/ellipse with
428-
a temporary rectangle of equal dimension.
419+
Replace each inset-rectangle with a temporary inset-rectangle with offsets relative to the margin-box.
429420
</li>
430421
<li>
431-
Set the values for rx and ry
432-
on the temporary rectangle to ‘50%’.
422+
Replace each circle and ellipse with a temporary inset-rectangle with offsets relative to the margin-box, and <'border-radius'> values to make the inset-rectangle equivalent to the original circle or ellipse
433423
</li>
434424
<li>
435-
Interpolate between the two rectangles as above.
425+
Interpolate between each value of the temporary inset-rectangles.
436426
</li>
437427
</ul>
438428
</li>
439-
<li>
440-
If one basic shape is an inset rectangle
441-
and the second is of type rectangle, circle or ellipse:
442-
<ul>
443-
<li>
444-
Replace the inset rectangle with
445-
a temporary rectangle of equal dimension.
446-
</li>
447-
<li>
448-
Interpolate between the basic shapes as above.
449-
</li>
450-
</ul>
451429
<li>
452430
If both basic shapes are of type polygon
453431
and if both polygons have the same number of vertices:
454432
<ul>
433+
<li>
434+
If the polygons use a different relevant box, replace one of the polygons with a temporary equivalent polygon that uses the relevant box of the other.
455435
<li>
456436
Interpolate between each value.
457437
</li>

0 commit comments

Comments
 (0)