Skip to content

Commit f4e75d3

Browse files
committed
[css-transitions] Oops, use a dfn where I intended to do so (for "before-change style" and "after-change style").
1 parent cb7761d commit f4e75d3

2 files changed

Lines changed: 46 additions & 33 deletions

File tree

css-transitions/Overview.html

Lines changed: 44 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -970,26 +970,28 @@ <h2 id=starting><span class=secno>3. </span> Starting of transitions</h2>
970970
implementations must start transitions based on the computed styles that
971971
changed in that event. If an element does not have a computed style either
972972
before or after the style change event, then transitions are not started
973-
for that element in that style change event. Otherwise, define the
974-
<span>before-change style</span> as the computed style for the element as
975-
of the previous <a href="#style-change-event">style change event</a>,
976-
except with any styles derived from declarative animations such as CSS
977-
Transitions, CSS Animations (<a href="#CSS3-ANIMATIONS"
973+
for that element in that style change event. Otherwise, define the <dfn
974+
id=before-change-style>before-change style</dfn> as the computed style for
975+
the element as of the previous <a href="#style-change-event">style change
976+
event</a>, except with any styles derived from declarative animations such
977+
as CSS Transitions, CSS Animations (<a href="#CSS3-ANIMATIONS"
978978
rel=biblioentry>[CSS3-ANIMATIONS]<!--{{CSS3-ANIMATIONS}}--></a>), and SMIL
979979
Animations (<a href="#SMIL-ANIMATION"
980980
rel=biblioentry>[SMIL-ANIMATION]<!--{{SMIL-ANIMATION}}--></a>, <a
981981
href="#SVG11" rel=biblioentry>[SVG11]<!--{{SVG11}}--></a>) updated to the
982-
current time. Likewise, define the <span>after-change style</span> as the
983-
computed style for the element based on the information known at the start
984-
of that <a href="#style-change-event">style change event</a>, in other
985-
words, excluding any changes resulting from CSS Transitions that start
986-
during that <a href="#style-change-event">style change event</a>.
982+
current time. Likewise, define the <dfn id=after-change-style>after-change
983+
style</dfn> as the computed style for the element based on the information
984+
known at the start of that <a href="#style-change-event">style change
985+
event</a>, in other words, excluding any changes resulting from CSS
986+
Transitions that start during that <a href="#style-change-event">style
987+
change event</a>.
987988

988989
<div class=note>
989-
<p> Note that this definition of the <span>after-change style</span> means
990-
that a single change can start a transition on the same property on both
991-
an ancestor element and its descendant element. This can happen when a
992-
property change is inherited from one element with ‘<code
990+
<p> Note that this definition of the <a
991+
href="#after-change-style">after-change style</a> means that a single
992+
change can start a transition on the same property on both an ancestor
993+
element and its descendant element. This can happen when a property
994+
change is inherited from one element with ‘<code
993995
class=css>transition-*</code>’ properties that say to animate the
994996
changing property to another element with ‘<code
995997
class=css>transition-*</code>’ properties that also say to animate the
@@ -1006,13 +1008,15 @@ <h2 id=starting><span class=secno>3. </span> Starting of transitions</h2>
10061008
desirable effect, but it is essentially doing what the author asked for.
10071009
</div>
10081010

1009-
<p> For each element with a <span>before-change style</span> and an
1010-
<span>after-change style</span>, and each property (other than shorthands)
1011-
for which the <span>before-change style</span> is different from the
1012-
<span>after-change style</span>, implementations must start transitions
1013-
based on the relevant item (see <a href="#transition-property">the
1014-
definition of ‘<code class=property>transition-property</code></a>)
1015-
in the computed value of ‘<a href="#transition-property"><code
1011+
<p> For each element with a <a href="#before-change-style">before-change
1012+
style</a> and an <a href="#after-change-style">after-change style</a>, and
1013+
each property (other than shorthands) for which the <a
1014+
href="#before-change-style">before-change style</a> is different from the
1015+
<a href="#after-change-style">after-change style</a>, implementations must
1016+
start transitions based on the relevant item (see <a
1017+
href="#transition-property">the definition of ‘<code
1018+
class=property>transition-property</code></a>) in the computed value of
1019+
<a href="#transition-property"><code
10161020
class=property>transition-property</code></a>’. Corresponding to this
10171021
item there is a <span>matching transition duration</span>, a
10181022
<span>matching transition delay</span>, and a <span>matching transition
@@ -1086,20 +1090,22 @@ <h2 id=application><span class=secno>4. </span> Application of transitions</h2>
10861090

10871091
<p> If the current time is at or before the <a href="#start-time">start
10881092
time</a> of the transition (that is, during the delay phase of the
1089-
transition), this value is a specified style that will compute to the
1090-
<span>before-change style</span> in the <a
1093+
transition), this value is a specified style that will compute to the <a
1094+
href="#before-change-style">before-change style</a> in the <a
10911095
href="#style-change-event">style change event</a> in which the transition
10921096
was started.
10931097

10941098
<p> If the current time is after the <a href="#start-time">start time</a>
10951099
of the transition (that is, during the duration phase of the transition),
10961100
this value is a specified style that will compute to the <a
10971101
href="#animatable-types">result of interpolating the property</a> using
1098-
the <span>before-change style</span> for the property as
1099-
<i>V</i><sub>start</sub>, using the <span>after-change style</span> for
1100-
the property as <i>V</i><sub>end</sub>, and using (current time - start
1101-
time) / (end time - start time) as the input to the timing function. (The
1102-
<span>before-change style</span> and <span>after-change style</span> <a
1102+
the <a href="#before-change-style">before-change style</a> for the
1103+
property as <i>V</i><sub>start</sub>, using the <a
1104+
href="#after-change-style">after-change style</a> for the property as
1105+
<i>V</i><sub>end</sub>, and using (current time - start time) / (end time
1106+
- start time) as the input to the timing function. (The <a
1107+
href="#before-change-style">before-change style</a> and <a
1108+
href="#after-change-style">after-change style</a> <a
11031109
href="#style-change-event">style change event</a> in which the transition
11041110
was started.)
11051111

@@ -1756,9 +1762,10 @@ <h2 id=changes><span class=secno>9. </span>Changes since Working Draft of
17561762
<li>Define the model for starting of transitions and their interaction
17571763
with other animations more precisely:
17581764
<ul>
1759-
<li>Define the <span>before-change style</span> and <span>after-change
1760-
style</span> used for the style comparison, using the new concept of a
1761-
<a href="#style-change-event">style change event</a>.
1765+
<li>Define the <a href="#before-change-style">before-change style</a>
1766+
and <a href="#after-change-style">after-change style</a> used for the
1767+
style comparison, using the new concept of a <a
1768+
href="#style-change-event">style change event</a>.
17621769

17631770
<li>Define that a CSS transition for a property does not affect computed
17641771
style when a CSS Animation for the same property is running, but that
@@ -1999,6 +2006,12 @@ <h2 class=no-num id=index>Index</h2>
19992006
<!--begin-index-->
20002007

20012008
<ul class=indexlist>
2009+
<li>after-change style, <a href="#after-change-style"
2010+
title="section 3."><strong>3.</strong></a>
2011+
2012+
<li>before-change style, <a href="#before-change-style"
2013+
title="section 3."><strong>3.</strong></a>
2014+
20022015
<li>combined duration, <a href="#combined-duration"
20032016
title="section 3."><strong>3.</strong></a>
20042017

css-transitions/Overview.src.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,15 +961,15 @@ <h2 id="starting">
961961
then transitions are not started for that element
962962
in that style change event.
963963
Otherwise,
964-
define the <span>before-change style</span> as
964+
define the <dfn>before-change style</dfn> as
965965
the computed style for the element as of
966966
the previous <span>style change event</span>,
967967
except with any styles derived from declarative
968968
animations such as CSS Transitions, CSS Animations
969969
([[CSS3-ANIMATIONS]]),
970970
and SMIL Animations ([[SMIL-ANIMATION]], [[SVG11]])
971971
updated to the current time.
972-
Likewise, define the <span>after-change style</span> as
972+
Likewise, define the <dfn>after-change style</dfn> as
973973
the computed style for the element based on the information
974974
known at the start of that <span>style change event</span>,
975975
in other words,

0 commit comments

Comments
 (0)