Skip to content

Commit 061f186

Browse files
committed
[css-transitions] Fix backwards shadow-list interp.
--HG-- extra : rebase_source : 0cf1e0686fa33a18b9fe33bfddddfcd625396e0c
1 parent 791a23c commit 061f186

2 files changed

Lines changed: 24 additions & 17 deletions

File tree

css-transitions/Overview.html

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
rel=dcterms.rights>
1111
<meta content="CSS Transitions" name=dcterms.title>
1212
<meta content=text name=dcterms.type>
13-
<meta content=2014-01-29 name=dcterms.date>
13+
<meta content=2014-07-07 name=dcterms.date>
1414
<meta content="L. David Baron" name=dcterms.creator>
1515
<meta content=W3C name=dcterms.publisher>
1616
<meta content="http://dev.w3.org/csswg/css3-transitions/"
@@ -40,7 +40,7 @@
4040

4141
<h1>CSS Transitions</h1>
4242

43-
<h2 class="no-num no-toc">Editor's Draft 29 January 2014</h2>
43+
<h2 class="no-num no-toc">Editor's Draft 7 July 2014</h2>
4444

4545
<dl>
4646
<dt>This version:
@@ -549,7 +549,7 @@ <h3 id=transition-duration-property><span class=secno>2.2. </span><a
549549
href="#transition-duration"><code
550550
class=property>transition-duration</code></a>’ renders the declaration
551551
invalid.</p>
552-
<!-- =======================================================================================================
552+
<!-- =======================================================================================================
553553
-->
554554

555555
<h3 id=transition-timing-function-property><span class=secno>2.3. </span><a
@@ -1390,11 +1390,15 @@ <h2 id=animatable-types><span class=secno>6. </span><a
13901390
the list is interpolated via the color (as <a
13911391
href="#animtype-color">color</a>) component, and x, y, blur, and (when
13921392
appropriate) spread (as <a href="#animtype-length">length</a>)
1393-
components. For each shadow, if one input shadow is ‘<code
1394-
class=css>inset</code>’ and the other is not, then the result for that
1395-
shadow matches the inputs; otherwise the entire list is not interpolable.
1396-
If the lists of shadows have different lengths, then the shorter list is
1397-
padded at the end with shadows whose color is ‘<code
1393+
components. For each shadow, if both input shadows are ‘<code
1394+
class=property>inset</code>’ or both input shadows are not ‘<code
1395+
class=property>inset</code>’, then the interpolated shadow must match
1396+
the input shadows in that regard. If any pair of input shadows has one
1397+
<code class=property>inset</code>’ and the other not ‘<code
1398+
class=property>inset</code>’, the entire <a
1399+
href="#animtype-shadow-list">shadow-list</a> is uninterpolable. If the
1400+
lists of shadows have different lengths, then the shorter list is padded
1401+
at the end with shadows whose color is ‘<code
13981402
class=css>transparent</code>’, all lengths are ‘<code
13991403
class=css>0</code>’, and whose ‘<code class=css>inset</code>’ (or
14001404
not) matches the longer list.
@@ -1800,7 +1804,7 @@ <h2 id=acknowledgments><span class=secno>9. </span>Acknowledgments</h2>
18001804

18011805
<p>Thanks especially to the feedback from Tab Atkins, Carine Bournez, Aryeh
18021806
Gregor, Vincent Hardy, Anne van Kesteren, Cameron McCormack, Alex
1803-
Mogilevsky, and all the rest of the <a
1807+
Mogilevsky, Jasper St. Pierre, and all the rest of the <a
18041808
href="http://lists.w3.org/Archives/Public/www-style/">www-style</a>
18051809
community.
18061810

css-transitions/Overview.src.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ <h2 id="transitions"><a title="" id="transitions-">Transitions</a></h2>
113113
Transitions are a presentational effect. The computed value of a property transitions over time from the old value to the new value. Therefore if a script queries the computed style of a property as it is transitioning, it will see an intermediate value that represents the current animated value of the property.
114114
</p>
115115
<p>
116-
Only animatable CSS properties can be transitioned. See the table at the end of this document for a list
116+
Only animatable CSS properties can be transitioned. See the table at the end of this document for a list
117117
of properties that are animatable.
118118
</p>
119119
<p>
@@ -178,7 +178,7 @@ <h2 id="transitions"><a title="" id="transitions-">Transitions</a></h2>
178178
second duration, a transition on the 'top' property of 2 seconds duration and a
179179
transition on the 'width' property of 1
180180
second duration.
181-
181+
182182
</div>
183183

184184
<p>
@@ -431,7 +431,7 @@ <h3 id="transition-duration-property"><a title="" id="the-transition-duration-pr
431431
This property specifies how long the transition from the old value to the new value should take. By default the value is ''0s'', meaning that the transition is immediate (i.e. there will be no animation). A negative value for 'transition-duration' renders the declaration invalid.
432432
</p>
433433

434-
<!-- =======================================================================================================
434+
<!-- =======================================================================================================
435435
-->
436436

437437
<h3 id="transition-timing-function-property"><a title="" id="transition-timing-function_tag">
@@ -446,10 +446,10 @@ <h3 id="transition-timing-function-property"><a title="" id="transition-timing-f
446446
used.
447447
</p>
448448
<p>
449-
Timing functions are either defined as a stepping function or
449+
Timing functions are either defined as a stepping function or
450450
a <a
451451
href="http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Cubic_B.C3.A9zier_curves">cubic
452-
B&eacute;zier curve</a>.
452+
B&eacute;zier curve</a>.
453453
The timing function takes as its input
454454
the current elapsed percentage of the transition duration
455455
and outputs the percentage of the way the transition is
@@ -1452,9 +1452,11 @@ <h2 id="animatable-types"><a title="" id="animation-of-property-types-">
14521452
color (as <a href="#animtype-color">color</a>) component,
14531453
and x, y, blur, and (when appropriate) spread
14541454
(as <a href="#animtype-length">length</a>) components.
1455-
For each shadow, if one input shadow is ''inset'' and the other
1456-
is not, then the result for that shadow matches the inputs;
1457-
otherwise the entire list is not interpolable.
1455+
For each shadow, if both input shadows are 'inset'
1456+
or both input shadows are not 'inset',
1457+
then the interpolated shadow must match the input shadows in that regard.
1458+
If any pair of input shadows has one 'inset' and the other not 'inset',
1459+
the entire <a href="#animtype-shadow-list">shadow-list</a> is uninterpolable.
14581460
If the lists of shadows have different lengths,
14591461
then the shorter list is padded at the end
14601462
with shadows whose color is ''transparent'',
@@ -1777,6 +1779,7 @@ <h2 id="acknowledgments">Acknowledgments</h2>
17771779
Anne van Kesteren,
17781780
Cameron McCormack,
17791781
Alex Mogilevsky,
1782+
Jasper St. Pierre,
17801783
and all the rest of the
17811784
<a href="http://lists.w3.org/Archives/Public/www-style/">www-style</a> community.</p>
17821785

0 commit comments

Comments
 (0)