Skip to content

Commit 2a35300

Browse files
committed
[css-shapes] simplify interpolation further
1 parent f361d66 commit 2a35300

2 files changed

Lines changed: 24 additions & 28 deletions

File tree

css-shapes/Overview.html

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
</p>
6464
<h1 class="p-name no-ref" id=title>CSS Shapes Module Level 1</h1>
6565
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
66-
<span class=dt-updated><span class=value-title title=20131119>19 November 2013</span></span></span></h2>
66+
<span class=dt-updated><span class=value-title title=20131120>20 November 2013</span></span></span></h2>
6767
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-shapes/>http://dev.w3.org/csswg/css-shapes/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/css-shapes/>http://www.w3.org/TR/css-shapes/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-shapes/>http://dev.w3.org/csswg/css-shapes/</a>
6868
<dt>Feedback:</dt>
6969
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-shapes%5D%20feedback">www-style@w3.org</a>
@@ -407,7 +407,7 @@ <h3 class="heading settled heading" data-level=3.1 id=supported-basic-shapes><sp
407407

408408
<dl>
409409
<dt><dfn class=css-code data-dfn-type=function data-export="" id=funcdef-inset title=inset()>inset()<a class=self-link href=#funcdef-inset></a></dfn> =
410-
inset( <a class="production css-code" data-link-type=type href=#typedef-shape-arg title="<shape-arg>">&lt;shape-arg&gt;</a>{1,4} [round &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;]? )
410+
inset( <a class="production css-code" data-link-type=type href=#typedef-shape-arg title="<shape-arg>">&lt;shape-arg&gt;</a>{1,4} [round &lt;<a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-backgrounds-3/#border-radius title=border-radius>border-radius</a>&gt;]? )
411411
</dt>
412412
<dd>
413413
Defines an inset rectangle.
@@ -426,9 +426,9 @@ <h3 class="heading settled heading" data-level=3.1 id=supported-basic-shapes><sp
426426
with one, two or four values.
427427
</li>
428428
<li>
429-
The optional <a class=production data-link-type=propdesc href=http://dev.w3.org/csswg/css-backgrounds-4/#border-radius title=border-radius>&lt;‘border-radius’&gt;</a> argument(s)
429+
The optional <a class=production data-link-type=propdesc href=http://dev.w3.org/csswg/css-backgrounds-3/#border-radius title=border-radius>&lt;‘border-radius’&gt;</a> argument(s)
430430
define rounded corners for the inset rectangle
431-
using the <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-backgrounds-4/#border-radius title=border-radius>border-radius</a> shorthand syntax.
431+
using the <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-backgrounds-3/#border-radius title=border-radius>border-radius</a> shorthand syntax.
432432
</li>
433433
</ul>
434434

@@ -561,17 +561,15 @@ <h3 class="heading settled heading" data-level=3.2 id=basic-shape-interpolation>
561561

562562
<p> For interpolating between
563563
one basic shape and a second,
564-
the rules below are applied.
564+
the rules below are applied.
565+
The values in the shape functions interpolate
566+
as a <a href=http://dev.w3.org/csswg/css3-transitions/#animtype-simple-list>simple list</a>
567+
of <a href=http://dev.w3.org/csswg/css3-transitions/#animtype-lpcalc>length,
568+
percentage, or calc</a> <a data-biblio-type=informative data-link-type=biblio href=#css3-transitions title=css3-transitions>[CSS3-TRANSITIONS]</a>.
565569

566570
<p> <ul>
567571
<li>
568-
If the second shape uses
569-
a different <a data-link-type=dfn href=#reference-box title="reference box">reference box</a>
570-
than the first,
571-
replace the second shape
572-
with a temporary equivalent shape
573-
that uses the <a data-link-type=dfn href=#reference-box title="reference box">reference box</a>
574-
of the first shape.
572+
Both shapes must use the same <a data-link-type=dfn href=#reference-box title="reference box">reference box</a>.
575573
</li>
576574
<li>
577575
If both shapes are the same type,
@@ -587,9 +585,9 @@ <h3 class="heading settled heading" data-level=3.2 id=basic-shape-interpolation>
587585
in the shape functions.
588586
</li>
589587
<li>
590-
If both shapes are of type <a class=css data-link-type=maybe href=#funcdef-polygon title=polygon()>polygon()</a>
591-
and both polygons
592-
have the same number of vertices,
588+
If both shapes are of type <a class=css data-link-type=maybe href=#funcdef-polygon title=polygon()>polygon()</a>,
589+
both polygons have the same number of vertices,
590+
and use the same <a class="production css-code" data-link-type=type href=#typedef-fill-rule title="<fill-rule>">&lt;fill-rule&gt;</a>,
593591
interpolate between each value
594592
in the shape functions.
595593
</li>
@@ -768,7 +766,7 @@ <h3 class="heading settled heading" data-level=6.1 id=shape-outside-property><sp
768766
<a class=css data-link-type=maybe href=#content-box title=content-box>content-box</a>
769767
which use their respective boxes
770768
including curvature from border-radius,
771-
similar to <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-backgrounds-4/#background-clip title=background-clip>background-clip</a> <a data-biblio-type=normative data-link-type=biblio href=#css3bg title=css3bg>[CSS3BG]</a>.
769+
similar to <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css-backgrounds-3/#background-clip title=background-clip>background-clip</a> <a data-biblio-type=normative data-link-type=biblio href=#css3bg title=css3bg>[CSS3BG]</a>.
772770
</dd>
773771

774772
<dt><dfn class=css-code data-dfn-for=shape-outside data-dfn-type=value data-export="" id=valuedef-basic-shape><a class="production css-code" data-link-type=type href=#typedef-basic-shape title="<basic-shape>">&lt;basic-shape&gt;</a><a class=self-link href=#valuedef-basic-shape></a></dfn></dt>
@@ -1113,7 +1111,7 @@ <h3 class="no-num no-ref heading settled heading" id=normative><span class=conte
11131111

11141112
<h3 class="no-num no-ref heading settled heading" id=informative><span class=content>
11151113
Informative References</span><a class=self-link href=#informative></a></h3>
1116-
<div data-fill-with=informative-references><dl><dt id=css-masking title=CSS-MASKING><a class=self-link href=#css-masking></a>[CSS-MASKING]<dd>Dirk Schulze; Brian Birtles; Tab Atkins Jr.. <a href=http://www.w3.org/TR/2013/WD-css-masking-20130620/>CSS Masking Level 1</a>. 20 June 2013. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/WD-css-masking-20130620/>http://www.w3.org/TR/2013/WD-css-masking-20130620/</a><dt id=css3-exclusions title=CSS3-EXCLUSIONS><a class=self-link href=#css3-exclusions></a>[CSS3-EXCLUSIONS]<dd>Vincent Hardy; Rossen Atanassov; Alan Stearns. <a href=http://www.w3.org/TR/2013/WD-css3-exclusions-20130528/>CSS Exclusions Module Level 1</a>. 28 May 2013. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/WD-css3-exclusions-20130528/>http://www.w3.org/TR/2013/WD-css3-exclusions-20130528/</a></dl></div>
1114+
<div data-fill-with=informative-references><dl><dt id=css-masking title=CSS-MASKING><a class=self-link href=#css-masking></a>[CSS-MASKING]<dd>Dirk Schulze; Brian Birtles; Tab Atkins Jr.. <a href=http://www.w3.org/TR/2013/WD-css-masking-20130620/>CSS Masking Level 1</a>. 20 June 2013. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/WD-css-masking-20130620/>http://www.w3.org/TR/2013/WD-css-masking-20130620/</a><dt id=css3-exclusions title=CSS3-EXCLUSIONS><a class=self-link href=#css3-exclusions></a>[CSS3-EXCLUSIONS]<dd>Vincent Hardy; Rossen Atanassov; Alan Stearns. <a href=http://www.w3.org/TR/2013/WD-css3-exclusions-20130528/>CSS Exclusions Module Level 1</a>. 28 May 2013. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/WD-css3-exclusions-20130528/>http://www.w3.org/TR/2013/WD-css3-exclusions-20130528/</a><dt id=css3-transitions title=CSS3-TRANSITIONS><a class=self-link href=#css3-transitions></a>[CSS3-TRANSITIONS]<dd>Dean Jackson; et al. <a href=http://www.w3.org/TR/2013/WD-css3-transitions-20130212/>CSS Transitions</a>. 12 February 2013. W3C Working Draft. (Work in progress.) URL: <a href=http://www.w3.org/TR/2013/WD-css3-transitions-20130212/>http://www.w3.org/TR/2013/WD-css3-transitions-20130212/</a></dl></div>
11171115

11181116
<h2 class="no-num no-ref heading settled heading" id=index><span class=content>
11191117
Index</span><a class=self-link href=#index></a></h2>

css-shapes/Overview.src.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -443,17 +443,15 @@ <h3 id='basic-shape-interpolation'>
443443

444444
For interpolating between
445445
one basic shape and a second,
446-
the rules below are applied.
446+
the rules below are applied.
447+
The values in the shape functions interpolate
448+
as a <a href="http://dev.w3.org/csswg/css3-transitions/#animtype-simple-list">simple list</a>
449+
of <a href="http://dev.w3.org/csswg/css3-transitions/#animtype-lpcalc">length,
450+
percentage, or calc</a> [[CSS3-TRANSITIONS]].
447451

448452
<ul>
449453
<li>
450-
If the second shape uses
451-
a different <a>reference box</a>
452-
than the first,
453-
replace the second shape
454-
with a temporary equivalent shape
455-
that uses the <a>reference box</a>
456-
of the first shape.
454+
Both shapes must use the same <a>reference box</a>.
457455
</li>
458456
<li>
459457
If both shapes are the same type,
@@ -469,9 +467,9 @@ <h3 id='basic-shape-interpolation'>
469467
in the shape functions.
470468
</li>
471469
<li>
472-
If both shapes are of type ''polygon()''
473-
and both polygons
474-
have the same number of vertices,
470+
If both shapes are of type ''polygon()'',
471+
both polygons have the same number of vertices,
472+
and use the same <<fill-rule>>,
475473
interpolate between each value
476474
in the shape functions.
477475
</li>

0 commit comments

Comments
 (0)