Skip to content

Commit 5ec0195

Browse files
committed
[css-transitions] Need to remove completed transitions on style changes when the combined duration is 0 or the change cannot be interpolated.
1 parent 697224f commit 5ec0195

2 files changed

Lines changed: 26 additions & 6 deletions

File tree

css-transitions/Overview.bs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,15 @@ url: https://html.spec.whatwg.org/multipage/infrastructure.html#concept-event-di
761761
</li>
762762
</ul>
763763
</li>
764+
<li>
765+
Otherwise,
766+
if the element has a <a>completed transition</a> for the property
767+
and the <a>end value</a> of the <a>completed transition</a>
768+
is different from the <a>after-change style</a> for the property,
769+
then implementations must
770+
remove the <a>completed transition</a> from the set of
771+
<a>completed transitions</a>.
772+
</li>
764773
<li>
765774
If the element has a <a>running transition</a> or
766775
<a>completed transition</a> for the property,

css-transitions/Overview.html

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
<h1 class="p-name no-ref" id="title">CSS Transitions</h1>
100100

101101
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft,
102-
<time class="dt-updated" datetime="2015-04-17">17 April 2015</time></span></h2>
102+
<time class="dt-updated" datetime="2015-04-24">24 April 2015</time></span></h2>
103103

104104
<div data-fill-with="spec-metadata">
105105
<dl>
@@ -1194,6 +1194,17 @@ <h2 class="heading settled" data-level="3" id="starting"><span class="secno">3.
11941194

11951195

11961196

1197+
<li>
1198+
Otherwise,
1199+
if the element has a <a data-link-type="dfn" href="#completed-transition">completed transition</a> for the property
1200+
and the <a data-link-type="dfn" href="#end-value">end value</a> of the <a data-link-type="dfn" href="#completed-transition">completed transition</a>
1201+
is different from the <a data-link-type="dfn" href="#after_change-style">after-change style</a> for the property,
1202+
then implementations must
1203+
remove the <a data-link-type="dfn" href="#completed-transition">completed transition</a> from the set of
1204+
<a data-link-type="dfn" href="#completed-transition">completed transitions</a>.
1205+
1206+
1207+
11971208
<li>
11981209
If the element has a <a data-link-type="dfn" href="#running-transition">running transition</a> or
11991210
<a data-link-type="dfn" href="#completed-transition">completed transition</a> for the property,
@@ -2758,7 +2769,7 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
27582769
<li><a href="http://dev.w3.org/csswg/css-values-3/#comb-one">|</a>
27592770
<li><a href="http://dev.w3.org/csswg/css-values-3/#comb-any">||</a>
27602771
</ul>
2761-
<li><a data-link-type="biblio" href="#biblio-css21">[css21]</a> defines the following terms:
2772+
<li><a data-link-type="biblio" href="#biblio-css21">[CSS21]</a> defines the following terms:
27622773
<ul>
27632774
<li><a href="http://dev.w3.org/csswg/css2/colors.html#propdef-background-color">background-color</a>
27642775
<li><a href="http://dev.w3.org/csswg/css2/colors.html#propdef-background-position">background-position</a>
@@ -2807,7 +2818,7 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
28072818
<li><a href="http://dom.spec.whatwg.org/#event">Event</a>
28082819
<li><a href="http://dom.spec.whatwg.org/#dictdef-eventinit">EventInit</a>
28092820
</ul>
2810-
<li><a data-link-type="biblio" href="#biblio-webidl">[webidl]</a> defines the following terms:
2821+
<li><a data-link-type="biblio" href="#biblio-webidl">[WebIDL]</a> defines the following terms:
28112822
<ul>
28122823
<li><a href="http://heycam.github.io/webidl/#idl-DOMString">DOMString</a>
28132824
</ul>
@@ -2816,9 +2827,9 @@ <h2 class="no-num heading settled" id="references"><span class="content">Referen
28162827
<h3 class="no-num heading settled" id="normative"><span class="content">Normative References</span><a class="self-link" href="#normative"></a></h3>
28172828
<dl>
28182829
<dt id="biblio-css21"><a class="self-link" href="#biblio-css21"></a>[CSS21]
2819-
<dd>Bert Bos; et al. <a href="http://www.w3.org/TR/2011/REC-CSS2-20110607">Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. W3C Recommendation. URL: <a href="http://www.w3.org/TR/2011/REC-CSS2-20110607">http://www.w3.org/TR/2011/REC-CSS2-20110607</a>
2830+
<dd>Bert Bos; et al. <a href="http://www.w3.org/TR/CSS2">Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. REC. URL: <a href="http://www.w3.org/TR/CSS2">http://www.w3.org/TR/CSS2</a>
28202831
<dt id="biblio-css3cascade"><a class="self-link" href="#biblio-css3cascade"></a>[CSS3CASCADE]
2821-
<dd>Håkon Wium Lie; Elika J. Etemad; Tab Atkins Jr.. <a href="http://www.w3.org/TR/2013/CR-css-cascade-3-20131003/">CSS Cascading and Inheritance Level 3</a>. 3 October 2013. W3C Candidate Recommendation. (Work in progress.) URL: <a href="http://www.w3.org/TR/2013/CR-css-cascade-3-20131003/">http://www.w3.org/TR/2013/CR-css-cascade-3-20131003/</a>
2832+
<dd>Elika Etemad; Tab Atkins Jr.. <a href="http://www.w3.org/TR/css-cascade-3/">CSS Cascading and Inheritance Level 3</a>. 16 April 2015. CR. URL: <a href="http://www.w3.org/TR/css-cascade-3/">http://www.w3.org/TR/css-cascade-3/</a>
28222833
<dt id="biblio-webidl"><a class="self-link" href="#biblio-webidl"></a>[WebIDL]
28232834
<dd>Cameron McCormack. <a href="http://www.w3.org/TR/WebIDL/">Web IDL</a>. 19 April 2012. CR. URL: <a href="http://www.w3.org/TR/WebIDL/">http://www.w3.org/TR/WebIDL/</a>
28242835
<dt id="biblio-css-backgrounds-3"><a class="self-link" href="#biblio-css-backgrounds-3"></a>[CSS-BACKGROUNDS-3]
@@ -2841,7 +2852,7 @@ <h3 class="no-num heading settled" id="normative"><span class="content">Normativ
28412852
<h3 class="no-num heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3>
28422853
<dl>
28432854
<dt id="biblio-css3color"><a class="self-link" href="#biblio-css3color"></a>[CSS3COLOR]
2844-
<dd>Tantek Çelik; Chris Lilley; L. David Baron. <a href="http://www.w3.org/TR/2011/REC-css3-color-20110607">CSS Color Module Level 3</a>. 7 June 2011. W3C Recommendation. URL: <a href="http://www.w3.org/TR/2011/REC-css3-color-20110607">http://www.w3.org/TR/2011/REC-css3-color-20110607</a>
2855+
<dd>Tantek Çelik; Chris Lilley; David Baron. <a href="http://www.w3.org/TR/css3-color">CSS Color Module Level 3</a>. 7 June 2011. REC. URL: <a href="http://www.w3.org/TR/css3-color">http://www.w3.org/TR/css3-color</a>
28452856
<dt id="biblio-svg11"><a class="self-link" href="#biblio-svg11"></a>[SVG11]
28462857
<dd>Erik Dahlström; et al. <a href="http://www.w3.org/TR/SVG11/">Scalable Vector Graphics (SVG) 1.1 (Second Edition)</a>. 16 August 2011. REC. URL: <a href="http://www.w3.org/TR/SVG11/">http://www.w3.org/TR/SVG11/</a>
28472858
<dt id="biblio-wcag20"><a class="self-link" href="#biblio-wcag20"></a>[WCAG20]

0 commit comments

Comments
 (0)