2012-01-30 simon.fraser@apple.com

Mon, 30 Jan 2012 15:59:09 +0000

author
Simon Fraser <simon.fraser@apple.com>
date
Mon, 30 Jan 2012 15:59:09 +0000
changeset 4369
2de9d888d065
parent 4368
d93b59bab65a
child 4370
09b53a4665ed

2012-01-30 simon.fraser@apple.com
Editorial only; change all <span class=""> to <code> to get default.css styling,
and minor reformatting.

css3-animations/ChangeLog file | annotate | diff | comparison | revisions
css3-animations/Overview.html file | annotate | diff | comparison | revisions
css3-animations/Overview.src.html file | annotate | diff | comparison | revisions
     1.1 --- a/css3-animations/ChangeLog	Mon Jan 30 15:24:47 2012 +0000
     1.2 +++ b/css3-animations/ChangeLog	Mon Jan 30 15:59:09 2012 +0000
     1.3 @@ -1,3 +1,7 @@
     1.4 +2012-01-30 simon.fraser@apple.com
     1.5 +	Editorial only; change all <span class=""> to <code> to get default.css styling,
     1.6 +	and minor reformatting.
     1.7 +	
     1.8  2012-01-30 simon.fraser@apple.com
     1.9  	- Clarify behavior of missing properties in keyframes:
    1.10  		https://www.w3.org/Bugs/Public/show_bug.cgi?id=14636
     2.1 --- a/css3-animations/Overview.html	Mon Jan 30 15:24:47 2012 +0000
     2.2 +++ b/css3-animations/Overview.html	Mon Jan 30 15:59:09 2012 +0000
     2.3 @@ -158,42 +158,39 @@
     2.4        </span> Timing functions for keyframes </a>
     2.5  
     2.6       <li><a href="#the-animation-name-property-"><span class=secno>3.2.
     2.7 -      </span> The <span class=prop-name>&lsquo;<code
     2.8 -      class=property>animation-name</code>&rsquo;</span> Property </a>
     2.9 +      </span> The <code class=property>'animation-name'</code> Property </a>
    2.10  
    2.11       <li><a href="#the-animation-duration-property-"><span class=secno>3.3.
    2.12 -      </span> The <span class=prop-name>&lsquo;<code
    2.13 -      class=property>animation-duration</code>&rsquo;</span> Property </a>
    2.14 +      </span> The <code class=property>'animation-duration'</code> Property
    2.15 +      </a>
    2.16  
    2.17       <li><a href="#animation-timing-function_tag"><span class=secno>3.4.
    2.18 -      </span> The <span class=prop-name>&lsquo;<code
    2.19 -      class=property>animation-timing-function</code>&rsquo;</span> Property
    2.20 +      </span> The <code class=property>'animation-timing-function'</code>
    2.21 +      Property </a>
    2.22 +
    2.23 +     <li><a href="#the-animation-iteration-count-property-"><span
    2.24 +      class=secno>3.5. </span> The <code
    2.25 +      class=property>'animation-iteration-count'</code> Property </a>
    2.26 +
    2.27 +     <li><a href="#the-animation-direction-property-"><span class=secno>3.6.
    2.28 +      </span> The <code class=property>'animation-direction'</code> Property
    2.29        </a>
    2.30  
    2.31 -     <li><a href="#the-animation-iteration-count-property-"><span
    2.32 -      class=secno>3.5. </span> The <span class=prop-name>&lsquo;<code
    2.33 -      class=property>animation-iteration-count</code>&rsquo;</span> Property
    2.34 +     <li><a href="#the-animation-play-state-property-"><span class=secno>3.7.
    2.35 +      </span> The <code class=property>'animation-play-state'</code> Property
    2.36        </a>
    2.37  
    2.38 -     <li><a href="#the-animation-direction-property-"><span class=secno>3.6.
    2.39 -      </span> The <span class=prop-name>&lsquo;<code
    2.40 -      class=property>animation-direction</code>&rsquo;</span> Property </a>
    2.41 -
    2.42 -     <li><a href="#the-animation-play-state-property-"><span class=secno>3.7.
    2.43 -      </span> The <span class=prop-name>&lsquo;<code
    2.44 -      class=property>animation-play-state</code>&rsquo;</span> Property </a>
    2.45 -
    2.46       <li><a href="#the-animation-delay-property-"><span class=secno>3.8.
    2.47 -      </span> The <span class=prop-name>&lsquo;<code
    2.48 -      class=property>animation-delay</code>&rsquo;</span> Property </a>
    2.49 +      </span> The <code class=property>'animation-delay'</code> Property </a>
    2.50 +      
    2.51  
    2.52       <li><a href="#the-animation-fill-mode-property-"><span class=secno>3.9.
    2.53 -      </span> The <span class=prop-name>&lsquo;<code
    2.54 -      class=property>animation-fill-mode</code>&rsquo;</span> Property </a>
    2.55 +      </span> The <code class=property>'animation-fill-mode'</code> Property
    2.56 +      </a>
    2.57  
    2.58       <li><a href="#the-animation-shorthand-property-"><span class=secno>3.10.
    2.59 -      </span> The <span class=prop-name>&lsquo;<code
    2.60 -      class=property>animation</code>&rsquo;</span> Shorthand Property </a>
    2.61 +      </span> The <code class=property>'animation'</code> Shorthand Property
    2.62 +      </a>
    2.63      </ul>
    2.64  
    2.65     <li><a href="#animation-events-"><span class=secno>4. </span> Animation
    2.66 @@ -279,29 +276,27 @@
    2.67     scripting engine returns control to the browser (in the case of style
    2.68     applied by script).
    2.69  
    2.70 -  <p> An animation applies to an element if the element has a value for <span
    2.71 -   class=prop-name>&lsquo;<a href="#animation-name"><code
    2.72 -   class=property>animation-name</code></a>&rsquo;</span> that references a
    2.73 -   valid keyframes rule. Once an animation has started it continues until it
    2.74 -   ends or the <span class=prop-name>&lsquo;<a href="#animation-name"><code
    2.75 -   class=property>animation-name</code></a>&rsquo;</span> is removed. The
    2.76 -   values used for the keyframes and animation properties are snapshotted at
    2.77 -   the time the animation starts. Changing them during the execution of the
    2.78 -   animation has no effect. Note also, that changing the value of <span
    2.79 -   class=prop-name>&lsquo;<a href="#animation-name"><code
    2.80 -   class=property>animation-name</code></a>&rsquo;</span> does not
    2.81 -   necessarily restart an animation (e.g. if a list of animations are applied
    2.82 -   and one is removed from the list, only that animation will stop; The other
    2.83 -   animations will continue). In order to restart an animation, it must be
    2.84 -   removed then reapplied.
    2.85 +  <p> An animation applies to an element if the element has a value for <a
    2.86 +   href="#animation-name"><code class=property>'animation-name'</code></a>
    2.87 +   that references a valid keyframes rule. Once an animation has started it
    2.88 +   continues until it ends or the <a href="#animation-name"><code
    2.89 +   class=property>'animation-name'</code></a> is removed. The values used for
    2.90 +   the keyframes and animation properties are snapshotted at the time the
    2.91 +   animation starts. Changing them during the execution of the animation has
    2.92 +   no effect. Note also, that changing the value of <a
    2.93 +   href="#animation-name"><code class=property>'animation-name'</code></a>
    2.94 +   does not necessarily restart an animation (e.g. if a list of animations
    2.95 +   are applied and one is removed from the list, only that animation will
    2.96 +   stop; The other animations will continue). In order to restart an
    2.97 +   animation, it must be removed then reapplied.
    2.98  
    2.99 -  <p> The end of the animation is defined by the combination of the <span
   2.100 -   class=prop-name>&lsquo;<a href="#animation-duration"><code
   2.101 -   class=property>animation-duration</code></a>&rsquo;</span>, <span
   2.102 -   class=prop-name>&lsquo;<a href="#animation-iteration-count"><code
   2.103 -   class=property>animation-iteration-count</code></a>&rsquo;</span> and
   2.104 -   <span class=prop-name>&lsquo;<a href="#animation-fill-mode"><code
   2.105 -   class=property>animation-fill-mode</code></a>&rsquo;</span> properties.
   2.106 +  <p> The end of the animation is defined by the combination of the <a
   2.107 +   href="#animation-duration"><code
   2.108 +   class=property>'animation-duration'</code></a>, <a
   2.109 +   href="#animation-iteration-count"><code
   2.110 +   class=property>'animation-iteration-count'</code></a> and <a
   2.111 +   href="#animation-fill-mode"><code
   2.112 +   class=property>'animation-fill-mode'</code></a> properties.
   2.113  
   2.114    <div class=example>
   2.115     <p style="display:none"> Example(s):</p>
   2.116 @@ -339,13 +334,12 @@
   2.117     of one cycle of the animation; the animation may iterate one or more
   2.118     times.
   2.119  
   2.120 -  <p> Keyframes are specified using a specialized CSS at-rule. A <span
   2.121 -   class=prop-name>@keyframes</span> rule consists of the keyword
   2.122 +  <p> Keyframes are specified using a specialized CSS at-rule. A <code
   2.123 +   class=property>@keyframes</code> rule consists of the keyword
   2.124     "@keyframes", followed by an identifier giving a name for the animation
   2.125 -   (which will be referenced using <span class=prop-name>&lsquo;<a
   2.126 -   href="#animation-name"><code
   2.127 -   class=property>animation-name</code></a>&rsquo;</span>), followed by a set
   2.128 -   of style rules (delimited by curly braces).
   2.129 +   (which will be referenced using <a href="#animation-name"><code
   2.130 +   class=property>'animation-name'</code></a>), followed by a set of style
   2.131 +   rules (delimited by curly braces).
   2.132  
   2.133    <p> The <i>keyframe selector</i> for a keyframe style rule consists of a
   2.134     comma-separated list of percentage values or the keywords &lsquo;<code
   2.135 @@ -367,29 +361,28 @@
   2.136  
   2.137    <p> The <i>keyframe declaration</i> for a keyframe rule consists of
   2.138     properties and values. Properties that are unable to be animated are
   2.139 -   ignored in these rules, with the exception of <a class=prop-name
   2.140 -   href="#animation-timing-function">animation-timing-function</a>, the
   2.141 -   behavior of which is described below.
   2.142 +   ignored in these rules, with the exception of <a
   2.143 +   href="#animation-timing-function"><code
   2.144 +   class=property>'animation-timing-function'</code></a>, the behavior of
   2.145 +   which is described below.
   2.146  
   2.147    <p class=note> NOTE: describe what happens if a property is not present in
   2.148     all keyframes.
   2.149  
   2.150    <p> The @keyframes rule that is used by an animation will be the last one
   2.151     encountered in sorted rules order that matches the name of the animation
   2.152 -   specified by the <span class=prop-name>&lsquo;<a
   2.153 -   href="#animation-name"><code
   2.154 -   class=property>animation-name</code></a>&rsquo;</span> property. <span
   2.155 -   class=prop-name>@keyframes</span> rules do not cascade; therefore an
   2.156 -   animation will never derive keyframes from more than one <span
   2.157 -   class=prop-name>@keyframes</span> rule.
   2.158 +   specified by the <a href="#animation-name"><code
   2.159 +   class=property>'animation-name'</code></a> property. <code
   2.160 +   class=css>@keyframes</code> rules do not cascade; therefore an animation
   2.161 +   will never derive keyframes from more than one <code
   2.162 +   class=css>@keyframes</code> rule.
   2.163  
   2.164    <p> To determine the set of keyframes, all of the values in the selectors
   2.165     are sorted in increasing order by time. If there are any duplicates, then
   2.166 -   the last keyframe specified inside the <span
   2.167 -   class=prop-name>@keyframes</span> rule will be used to provide the
   2.168 -   keyframe information for that time. There is no cascading within a <span
   2.169 -   class=prop-name>@keyframes</span> rule if multiple keyframes specify the
   2.170 -   same keyframe selector values.
   2.171 +   the last keyframe specified inside the <code class=css>@keyframes</code>
   2.172 +   rule will be used to provide the keyframe information for that time. There
   2.173 +   is no cascading within a <code class=css>@keyframes</code> rule if
   2.174 +   multiple keyframes specify the same keyframe selector values.
   2.175  
   2.176    <p> If property is not specified for a keyframe, or is specified but
   2.177     invalid, the animation of that property proceeds as if that keyframe did
   2.178 @@ -402,7 +395,6 @@
   2.179  
   2.180     <pre>
   2.181    @keyframes wobble {
   2.182 -
   2.183      0% {
   2.184        left: 100px;
   2.185      }
   2.186 @@ -418,7 +410,6 @@
   2.187      100% {
   2.188        left: 100px;
   2.189      }
   2.190 -
   2.191    }
   2.192  
   2.193    </pre>
   2.194 @@ -502,34 +493,32 @@
   2.195     the element 25px units up the page. A timing function specified on the
   2.196     "to" or 100% keyframe is ignored</div>
   2.197  
   2.198 -  <p> See <a href="#animation-timing-function_tag">the <span
   2.199 -   class=prop-name>&lsquo;<code
   2.200 -   class=property>animation-timing-function</code>&rsquo;</span> property</a>
   2.201 -   for more information.</p>
   2.202 +  <p> See <a href="#animation-timing-function_tag">the <code
   2.203 +   class=property>'animation-timing-function'</code> property</a> for more
   2.204 +   information.</p>
   2.205    <!-- ======================================================================================================= -->
   2.206    <!-- ======================================================================================================= -->
   2.207  
   2.208 -  <h3 id=the-animation-name-property-><span class=secno>3.2. </span> The
   2.209 -   <span class=prop-name>&lsquo;<a href="#animation-name"><code
   2.210 -   class=property>animation-name</code></a>&rsquo;</span> Property</h3>
   2.211 +  <h3 id=the-animation-name-property-><span class=secno>3.2. </span> The <a
   2.212 +   href="#animation-name"><code class=property>'animation-name'</code></a>
   2.213 +   Property</h3>
   2.214  
   2.215 -  <p> The <span class=prop-name>&lsquo;<a href="#animation-name"><code
   2.216 -   class=property>animation-name</code></a>&rsquo;</span> property defines a
   2.217 -   list of animations that apply. Each name is used to select the keyframe
   2.218 -   at-rule that provides the property values for the animation. If the name
   2.219 -   does not match any keyframe at-rule, there are no properties to be
   2.220 -   animated and the animation will not execute. Furthermore, if the animation
   2.221 -   name is &lsquo;<code class=property>none</code>&rsquo; then there will be
   2.222 -   no animation. This can be used to override any animations coming from the
   2.223 +  <p> The <a href="#animation-name"><code
   2.224 +   class=property>'animation-name'</code></a> property defines a list of
   2.225 +   animations that apply. Each name is used to select the keyframe at-rule
   2.226 +   that provides the property values for the animation. If the name does not
   2.227 +   match any keyframe at-rule, there are no properties to be animated and the
   2.228 +   animation will not execute. Furthermore, if the animation name is
   2.229 +   &lsquo;<code class=property>none</code>&rsquo; then there will be no
   2.230 +   animation. This can be used to override any animations coming from the
   2.231     cascade. If animations are attempting to modify the same property, then
   2.232     the animation closest to the end of the list of names wins.
   2.233  
   2.234    <p> Each animation listed by name should have a corresponding value for the
   2.235     other animation properties listed below. In the case where the other
   2.236     properties do not have lists of the correct length, their values are
   2.237 -   repeated to form a list with the same number of entries as <span
   2.238 -   class=prop-name>&lsquo;<a href="#animation-name"><code
   2.239 -   class=property>animation-name</code></a>&rsquo;</span>.
   2.240 +   repeated to form a list with the same number of entries as <a
   2.241 +   href="#animation-name"><code class=property>'animation-name'</code></a>.
   2.242  
   2.243    <table class=propdef>
   2.244     <tbody>
   2.245 @@ -575,7 +564,7 @@
   2.246    </table>
   2.247    <!--
   2.248        <p>
   2.249 -        It is possible for elements to have multiple animations running that change the same property or properties. In this case the animations combine in a manner defined by the property. For example, animations on <span class="prop-name">opacity</span> will add together and animations on <span class="prop-name">transform</span> will have their transformation matrices multiplied.
   2.250 +        It is possible for elements to have multiple animations running that change the same property or properties. In this case the animations combine in a manner defined by the property. For example, animations on <code class="property">'opacity'</code> will add together and animations on <code class="property">'transform'</code> will have their transformation matrices multiplied.
   2.251        </p>
   2.252        <div class="example">
   2.253          <p style="display:none">
   2.254 @@ -606,7 +595,7 @@
   2.255          }
   2.256        </pre>
   2.257        <p>
   2.258 -      The above example has two animations executing on the same property, <span class="prop-name">border-width</span>. The animations are additive. That is, the 
   2.259 +      The above example has two animations executing on the same property, <code class="property">'border-width'</code>. The animations are additive. That is, the 
   2.260        resulting value for the property will be the addition of the values from the
   2.261        two animations.
   2.262        </p>
   2.263 @@ -621,12 +610,12 @@
   2.264    <!-- ======================================================================================================= -->
   2.265  
   2.266    <h3 id=the-animation-duration-property-><span class=secno>3.3. </span> The
   2.267 -   <span class=prop-name>&lsquo;<a href="#animation-duration"><code
   2.268 -   class=property>animation-duration</code></a>&rsquo;</span> Property</h3>
   2.269 +   <a href="#animation-duration"><code
   2.270 +   class=property>'animation-duration'</code></a> Property</h3>
   2.271  
   2.272 -  <p> The <span class=prop-name>&lsquo;<a href="#animation-duration"><code
   2.273 -   class=property>animation-duration</code></a>&rsquo;</span> property
   2.274 -   defines the length of time that an animation takes to complete one cycle.
   2.275 +  <p> The <a href="#animation-duration"><code
   2.276 +   class=property>'animation-duration'</code></a> property defines the length
   2.277 +   of time that an animation takes to complete one cycle.
   2.278  
   2.279    <table class=propdef>
   2.280     <tbody>
   2.281 @@ -673,26 +662,25 @@
   2.282  
   2.283    <p> By default the value is &lsquo;<code class=css>0s</code>&rsquo;,
   2.284     meaning that the animation cycle is immediate. A negative value for <a
   2.285 -   class=prop-name href="#animation-duration">animation-duration</a> is
   2.286 -   treated as &lsquo;<code class=css>0s</code>&rsquo;. In this case <a
   2.287 -   class=prop-name href="#animation-fill-mode">animation-fill-mode</a> still
   2.288 -   applies, so an animation that fills backwards will show the value of the
   2.289 -   0% keyframe during any delay period, and an animation that fill forwards
   2.290 -   will retain the value specified at the 100% keyframe, even if the
   2.291 -   animation was instantaneous. Also, animation events are still fired.</p>
   2.292 +   href="#animation-duration"><code
   2.293 +   class=property>'animation-duration'</code></a> is treated as &lsquo;<code
   2.294 +   class=css>0s</code>&rsquo;. In this case <a
   2.295 +   href="#animation-fill-mode"><code
   2.296 +   class=property>'animation-fill-mode'</code></a> still applies, so an
   2.297 +   animation that fills backwards will show the value of the 0% keyframe
   2.298 +   during any delay period, and an animation that fill forwards will retain
   2.299 +   the value specified at the 100% keyframe, even if the animation was
   2.300 +   instantaneous. Also, animation events are still fired.</p>
   2.301    <!-- ======================================================================================================= -->
   2.302  
   2.303    <h3 id="animation-timing-function_tag"><span class=secno>3.4. </span> The
   2.304 -   <span class=prop-name>&lsquo;<a href="#animation-timing-function"><code
   2.305 -   class=property>animation-timing-function</code></a>&rsquo;</span> Property
   2.306 -   </h3>
   2.307 +   <a href="#animation-timing-function"><code
   2.308 +   class=property>'animation-timing-function'</code></a> Property</h3>
   2.309  
   2.310 -  <p> The <span class=prop-name>&lsquo;<a
   2.311 -   href="#animation-timing-function"><code
   2.312 -   class=property>animation-timing-function</code></a>&rsquo;</span> property
   2.313 -   describes how the animation will progress over one cycle of its duration.
   2.314 -   See the <span class=prop-name>&lsquo;<code
   2.315 -   class=property>transition-timing-function</code>&rsquo;</span> property <a
   2.316 +  <p> The <a href="#animation-timing-function"><code
   2.317 +   class=property>'animation-timing-function'</code></a> property describes
   2.318 +   how the animation will progress over one cycle of its duration. See the
   2.319 +   <code class=property>'transition-timing-function'</code> property <a
   2.320     href="#CSS3-TRANSITIONS"
   2.321     rel=biblioentry>[CSS3-TRANSITIONS]<!--{{!CSS3-TRANSITIONS}}--></a> for a
   2.322     complete description of timing function calculation.
   2.323 @@ -746,41 +734,35 @@
   2.324       <td> Same as specified value.
   2.325    </table>
   2.326  
   2.327 -  <p> For a keyframed animation, the <span class=prop-name>&lsquo;<a
   2.328 +  <p> For a keyframed animation, the <a
   2.329     href="#animation-timing-function"><code
   2.330 -   class=property>animation-timing-function</code></a>&rsquo;</span> applies
   2.331 -   between keyframes, not over the entire animation. For example, in the case
   2.332 -   of an ease-in-out timing function, an animation will ease in at the start
   2.333 -   of the keyframe and ease out at the end of the keyframe. A <span
   2.334 -   class=prop-name>&lsquo;<a href="#animation-timing-function"><code
   2.335 -   class=property>animation-timing-function</code></a>&rsquo;</span> defined
   2.336 -   within a keyframe block applies to that keyframe, otherwise the timing
   2.337 -   function specified for the animation is used.</p>
   2.338 +   class=property>'animation-timing-function'</code></a> applies between
   2.339 +   keyframes, not over the entire animation. For example, in the case of an
   2.340 +   ease-in-out timing function, an animation will ease in at the start of the
   2.341 +   keyframe and ease out at the end of the keyframe. A <a
   2.342 +   href="#animation-timing-function"><code
   2.343 +   class=property>'animation-timing-function'</code></a> defined within a
   2.344 +   keyframe block applies to that keyframe, otherwise the timing function
   2.345 +   specified for the animation is used.</p>
   2.346    <!-- ======================================================================================================= -->
   2.347  
   2.348    <h3 id=the-animation-iteration-count-property-><span class=secno>3.5.
   2.349 -   </span> The <span class=prop-name>&lsquo;<a
   2.350 +   </span> The <a href="#animation-iteration-count"><code
   2.351 +   class=property>'animation-iteration-count'</code></a> Property</h3>
   2.352 +
   2.353 +  <p> The <a href="#animation-iteration-count"><code
   2.354 +   class=property>'animation-iteration-count'</code></a> property defines the
   2.355 +   number of times an animation cycle is played. The default value is one,
   2.356 +   meaning the animation will play from beginning to end once. A value of
   2.357 +   <code class=css>'infinite'</code> will cause the animation to repeat
   2.358 +   forever. Non-integer numbers will cause the animation to end part-way
   2.359 +   through a cycle. Negative values of <a
   2.360     href="#animation-iteration-count"><code
   2.361 -   class=property>animation-iteration-count</code></a>&rsquo;</span> Property
   2.362 -   </h3>
   2.363 -
   2.364 -  <p> The <span class=prop-name>&lsquo;<a
   2.365 -   href="#animation-iteration-count"><code
   2.366 -   class=property>animation-iteration-count</code></a>&rsquo;</span> property
   2.367 -   defines the number of times an animation cycle is played. The default
   2.368 -   value is one, meaning the animation will play from beginning to end once.
   2.369 -   A value of <span class=prop-value>&lsquo;<code
   2.370 -   class=property>infinite</code>&rsquo;</span> will cause the animation to
   2.371 -   repeat forever. Non-integer numbers will cause the animation to end
   2.372 -   part-way through a cycle. Negative values of <span
   2.373 -   class=prop-name>&lsquo;<a href="#animation-iteration-count"><code
   2.374 -   class=property>animation-iteration-count</code></a>&rsquo;</span> are
   2.375 -   invalid. This property is often used with an <span
   2.376 -   class=prop-name>&lsquo;<a href="#animation-direction"><code
   2.377 -   class=property>animation-direction</code></a>&rsquo;</span> value of <span
   2.378 -   class=prop-value>&lsquo;<code
   2.379 -   class=property>alternate</code>&rsquo;</span>, which will cause the
   2.380 -   animation to play in reverse on alternate cycles.
   2.381 +   class=property>'animation-iteration-count'</code></a> are invalid. This
   2.382 +   property is often used with an <a href="#animation-direction"><code
   2.383 +   class=property>'animation-direction'</code></a> value of <code
   2.384 +   class=css>alternate</code>, which will cause the animation to play in
   2.385 +   reverse on alternate cycles.
   2.386  
   2.387    <table class=propdef>
   2.388     <tbody>
   2.389 @@ -827,19 +809,18 @@
   2.390    <!-- ======================================================================================================= -->
   2.391  
   2.392    <h3 id=the-animation-direction-property-><span class=secno>3.6. </span> The
   2.393 -   <span class=prop-name>&lsquo;<a href="#animation-direction"><code
   2.394 -   class=property>animation-direction</code></a>&rsquo;</span> Property</h3>
   2.395 +   <a href="#animation-direction"><code
   2.396 +   class=property>'animation-direction'</code></a> Property</h3>
   2.397  
   2.398 -  <p> The <span class=prop-name>&lsquo;<a href="#animation-direction"><code
   2.399 -   class=property>animation-direction</code></a>&rsquo;</span> property
   2.400 -   defines whether or not the animation should play in reverse on alternate
   2.401 -   cycles. If <span class=prop-value>&lsquo;<code
   2.402 -   class=property>alternate</code>&rsquo;</span> is specified, the animation
   2.403 -   cycle iterations that are odd counts are played in the normal direction,
   2.404 -   and the animation cycle iterations that are even counts are played in a
   2.405 -   reverse direction. When an animation is played in reverse the timing
   2.406 -   functions are also reversed. For example, when played in reverse an
   2.407 -   ease-in animation would appear to be an ease-out animation.
   2.408 +  <p> The <a href="#animation-direction"><code
   2.409 +   class=property>'animation-direction'</code></a> property defines whether
   2.410 +   or not the animation should play in reverse on alternate cycles. If <code
   2.411 +   class=css>alternate</code> is specified, the animation cycle iterations
   2.412 +   that are odd counts are played in the normal direction, and the animation
   2.413 +   cycle iterations that are even counts are played in a reverse direction.
   2.414 +   When an animation is played in reverse the timing functions are also
   2.415 +   reversed. For example, when played in reverse an ease-in animation would
   2.416 +   appear to be an ease-out animation.
   2.417  
   2.418    <table class=propdef>
   2.419     <tbody>
   2.420 @@ -886,20 +867,19 @@
   2.421    <!-- ======================================================================================================= -->
   2.422  
   2.423    <h3 id=the-animation-play-state-property-><span class=secno>3.7. </span>
   2.424 -   The <span class=prop-name>&lsquo;<a href="#animation-play-state"><code
   2.425 -   class=property>animation-play-state</code></a>&rsquo;</span> Property</h3>
   2.426 +   The <a href="#animation-play-state"><code
   2.427 +   class=property>'animation-play-state'</code></a> Property</h3>
   2.428  
   2.429 -  <p> The <span class=prop-name>&lsquo;<a href="#animation-play-state"><code
   2.430 -   class=property>animation-play-state</code></a>&rsquo;</span> property
   2.431 -   defines whether the animation is running or paused. A running animation
   2.432 -   can be paused by setting this property to <span
   2.433 -   class=prop-value>&lsquo;<code class=property>paused</code>&rsquo;</span>.
   2.434 -   To continue running a paused animation this property can be set to <span
   2.435 -   class=prop-value>&lsquo;<code class=property>running</code>&rsquo;</span>.
   2.436 -   A paused animation will continue to display the current value of the
   2.437 -   animation in a static state, as if the time of the animation is constant.
   2.438 -   When a paused animation is resumed, it restarts from the current value,
   2.439 -   not necessarily from the beginning of the animation.
   2.440 +  <p> The <a href="#animation-play-state"><code
   2.441 +   class=property>'animation-play-state'</code></a> property defines whether
   2.442 +   the animation is running or paused. A running animation can be paused by
   2.443 +   setting this property to <code class=css>'paused'</code>. To continue
   2.444 +   running a paused animation this property can be set to <code
   2.445 +   class=css>'running'</code>. A paused animation will continue to display
   2.446 +   the current value of the animation in a static state, as if the time of
   2.447 +   the animation is constant. When a paused animation is resumed, it restarts
   2.448 +   from the current value, not necessarily from the beginning of the
   2.449 +   animation.
   2.450  
   2.451    <table class=propdef>
   2.452     <tbody>
   2.453 @@ -945,31 +925,28 @@
   2.454    </table>
   2.455    <!-- ======================================================================================================= -->
   2.456  
   2.457 -  <h3 id=the-animation-delay-property-><span class=secno>3.8. </span> The
   2.458 -   <span class=prop-name>&lsquo;<a href="#animation-delay"><code
   2.459 -   class=property>animation-delay</code></a>&rsquo;</span> Property</h3>
   2.460 +  <h3 id=the-animation-delay-property-><span class=secno>3.8. </span> The <a
   2.461 +   href="#animation-delay"><code class=property>'animation-delay'</code></a>
   2.462 +   Property</h3>
   2.463  
   2.464 -  <p> The <span class=prop-name>&lsquo;<a href="#animation-delay"><code
   2.465 -   class=property>animation-delay</code></a>&rsquo;</span> property defines
   2.466 -   when the animation will start. It allows an animation to begin execution
   2.467 -   some time after it is applied. An <span class=prop-name>&lsquo;<a
   2.468 -   href="#animation-delay"><code
   2.469 -   class=property>animation-delay</code></a>&rsquo;</span> value of
   2.470 -   &lsquo;<code class=css>0s</code>&rsquo; means the animation will execute
   2.471 -   as soon as it is applied. Otherwise, the value specifies an offset from
   2.472 -   the moment the animation is applied, and the animation will delay
   2.473 -   execution by that offset.
   2.474 +  <p> The <a href="#animation-delay"><code
   2.475 +   class=property>'animation-delay'</code></a> property defines when the
   2.476 +   animation will start. It allows an animation to begin execution some time
   2.477 +   after it is applied. An <a href="#animation-delay"><code
   2.478 +   class=property>'animation-delay'</code></a> value of &lsquo;<code
   2.479 +   class=css>0s</code>&rsquo; means the animation will execute as soon as it
   2.480 +   is applied. Otherwise, the value specifies an offset from the moment the
   2.481 +   animation is applied, and the animation will delay execution by that
   2.482 +   offset.
   2.483  
   2.484 -  <p> If the value for <span class=prop-name>&lsquo;<a
   2.485 -   href="#animation-delay"><code
   2.486 -   class=property>animation-delay</code></a>&rsquo;</span> is a negative time
   2.487 -   offset then the animation will execute the moment it is applied, but will
   2.488 -   appear to have begun execution at the specified offset. That is, the
   2.489 -   animation will appear to begin part-way through its play cycle. In the
   2.490 -   case where an animation has implied starting values and a negative <span
   2.491 -   class=prop-name>&lsquo;<a href="#animation-delay"><code
   2.492 -   class=property>animation-delay</code></a>&rsquo;</span>, the starting
   2.493 -   values are taken from the moment the animation is applied.
   2.494 +  <p> If the value for <a href="#animation-delay"><code
   2.495 +   class=property>'animation-delay'</code></a> is a negative time offset then
   2.496 +   the animation will execute the moment it is applied, but will appear to
   2.497 +   have begun execution at the specified offset. That is, the animation will
   2.498 +   appear to begin part-way through its play cycle. In the case where an
   2.499 +   animation has implied starting values and a negative <a
   2.500 +   href="#animation-delay"><code class=property>'animation-delay'</code></a>,
   2.501 +   the starting values are taken from the moment the animation is applied.
   2.502  
   2.503    <table class=propdef>
   2.504     <tbody>
   2.505 @@ -1016,62 +993,50 @@
   2.506    <!-- ======================================================================================================= -->
   2.507  
   2.508    <h3 id=the-animation-fill-mode-property-><span class=secno>3.9. </span> The
   2.509 -   <span class=prop-name>&lsquo;<a href="#animation-fill-mode"><code
   2.510 -   class=property>animation-fill-mode</code></a>&rsquo;</span> Property</h3>
   2.511 +   <a href="#animation-fill-mode"><code
   2.512 +   class=property>'animation-fill-mode'</code></a> Property</h3>
   2.513  
   2.514 -  <p> The <span class=prop-name>&lsquo;<a href="#animation-fill-mode"><code
   2.515 -   class=property>animation-fill-mode</code></a>&rsquo;</span> property
   2.516 -   defines what values are applied by the animation outside the time it is
   2.517 -   executing. By default, an animation will not affect property values
   2.518 -   between the time it is applied (the <span class=prop-name>&lsquo;<a
   2.519 -   href="#animation-name"><code
   2.520 -   class=property>animation-name</code></a>&rsquo;</span> property is set on
   2.521 -   an element) and the time it begins execution (which is determined by the
   2.522 -   <span class=prop-name>&lsquo;<a href="#animation-delay"><code
   2.523 -   class=property>animation-delay</code></a>&rsquo;</span> property). Also,
   2.524 -   by default an animation does not affect property values after the
   2.525 -   animation ends (determined by the <span class=prop-name>&lsquo;<a
   2.526 +  <p> The <a href="#animation-fill-mode"><code
   2.527 +   class=property>'animation-fill-mode'</code></a> property defines what
   2.528 +   values are applied by the animation outside the time it is executing. By
   2.529 +   default, an animation will not affect property values between the time it
   2.530 +   is applied (the <a href="#animation-name"><code
   2.531 +   class=property>'animation-name'</code></a> property is set on an element)
   2.532 +   and the time it begins execution (which is determined by the <a
   2.533 +   href="#animation-delay"><code class=property>'animation-delay'</code></a>
   2.534 +   property). Also, by default an animation does not affect property values
   2.535 +   after the animation ends (determined by the <a
   2.536     href="#animation-duration"><code
   2.537 -   class=property>animation-duration</code></a>&rsquo;</span> property). The
   2.538 -   value of <span class=prop-name>&lsquo;<a href="#animation-fill-mode"><code
   2.539 -   class=property>animation-fill-mode</code></a>&rsquo;</span> can override
   2.540 -   this behavior.
   2.541 +   class=property>'animation-duration'</code></a> property). The value of <a
   2.542 +   href="#animation-fill-mode"><code
   2.543 +   class=property>'animation-fill-mode'</code></a> can override this
   2.544 +   behavior.
   2.545  
   2.546 -  <p> If the value for <span class=prop-name>&lsquo;<a
   2.547 -   href="#animation-fill-mode"><code
   2.548 -   class=property>animation-fill-mode</code></a>&rsquo;</span> is <span
   2.549 -   class=prop-value>&lsquo;<code
   2.550 -   class=property>backwards</code>&rsquo;</span>, then the animation will
   2.551 -   apply the property values defined in its 0% or &lsquo;<code
   2.552 -   class=property>from</code>&rsquo; keyframe as soon as the animation is
   2.553 -   applied, during the period defined by <span class=prop-name>&lsquo;<a
   2.554 -   href="#animation-delay"><code
   2.555 -   class=property>animation-delay</code></a>&rsquo;</span>.
   2.556 +  <p> If the value for <a href="#animation-fill-mode"><code
   2.557 +   class=property>'animation-fill-mode'</code></a> is <code
   2.558 +   class=css>'backwards'</code>, then the animation will apply the property
   2.559 +   values defined in its 0% or &lsquo;<code class=property>from</code>&rsquo;
   2.560 +   keyframe as soon as the animation is applied, during the period defined by
   2.561 +   <a href="#animation-delay"><code
   2.562 +   class=property>'animation-delay'</code></a>.
   2.563  
   2.564 -  <p> If the value for <span class=prop-name>&lsquo;<a
   2.565 -   href="#animation-fill-mode"><code
   2.566 -   class=property>animation-fill-mode</code></a>&rsquo;</span> is <span
   2.567 -   class=prop-value>&lsquo;<code
   2.568 -   class=property>forwards</code>&rsquo;</span>, then the animation will
   2.569 -   apply the property values defined in its last executing keyframe after the
   2.570 -   final iteration of the animation, until the animation style is removed.
   2.571 -   The last executing keyframe is the &lsquo;<code
   2.572 -   class=property>to</code>&rsquo; or &lsquo;<code
   2.573 -   class=css>100%</code>&rsquo; keyframe, unless the animation has <span
   2.574 -   class=prop-name>&lsquo;<a href="#animation-direction"><code
   2.575 -   class=property>animation-direction</code></a>&rsquo;</span> set to <span
   2.576 -   class=prop-value>&lsquo;<code
   2.577 -   class=property>alternate</code>&rsquo;</span> and both a finite and even
   2.578 -   iteration count, in which case it is the &lsquo;<code
   2.579 -   class=property>from</code>&rsquo; or &lsquo;<code
   2.580 -   class=css>0%</code>&rsquo; keyframe.
   2.581 +  <p> If the value for <a href="#animation-fill-mode"><code
   2.582 +   class=property>'animation-fill-mode'</code></a> is <code
   2.583 +   class=css>'forwards'</code>, then the animation will apply the property
   2.584 +   values defined in its last executing keyframe after the final iteration of
   2.585 +   the animation, until the animation style is removed. The last executing
   2.586 +   keyframe is the &lsquo;<code class=property>to</code>&rsquo; or
   2.587 +   &lsquo;<code class=css>100%</code>&rsquo; keyframe, unless the animation
   2.588 +   has <a href="#animation-direction"><code
   2.589 +   class=property>'animation-direction'</code></a> set to <code
   2.590 +   class=css>'alternate'</code> and both a finite and even iteration count,
   2.591 +   in which case it is the &lsquo;<code class=property>from</code>&rsquo; or
   2.592 +   &lsquo;<code class=css>0%</code>&rsquo; keyframe.
   2.593  
   2.594 -  <p> If the value for <span class=prop-name>&lsquo;<a
   2.595 -   href="#animation-fill-mode"><code
   2.596 -   class=property>animation-fill-mode</code></a>&rsquo;</span> is <span
   2.597 -   class=prop-value>&lsquo;<code class=property>both</code>&rsquo;</span>,
   2.598 -   then the animation will follow the rules for both &lsquo;<code
   2.599 -   class=property>forwards</code>&rsquo; and &lsquo;<code
   2.600 +  <p> If the value for <a href="#animation-fill-mode"><code
   2.601 +   class=property>'animation-fill-mode'</code></a> is <code
   2.602 +   class=css>'both'</code>, then the animation will follow the rules for both
   2.603 +   &lsquo;<code class=property>forwards</code>&rsquo; and &lsquo;<code
   2.604     class=property>backwards</code>&rsquo;. That is, it will extend the
   2.605     animation properties in both directions.
   2.606  
   2.607 @@ -1121,12 +1086,12 @@
   2.608    <!-- ======================================================================================================= -->
   2.609  
   2.610    <h3 id=the-animation-shorthand-property-><span class=secno>3.10. </span>
   2.611 -   The <span class=prop-name>&lsquo;<a href="#animation"><code
   2.612 -   class=property>animation</code></a>&rsquo;</span> Shorthand Property</h3>
   2.613 +   The <a href="#animation"><code class=property>'animation'</code></a>
   2.614 +   Shorthand Property</h3>
   2.615  
   2.616 -  <p> The <span class=prop-name>&lsquo;<a href="#animation"><code
   2.617 -   class=property>animation</code></a>&rsquo;</span> shorthand property
   2.618 -   combines seven of the animation properties into a single property.
   2.619 +  <p> The <a href="#animation"><code class=property>'animation'</code></a>
   2.620 +   shorthand property combines seven of the animation properties into a
   2.621 +   single property.
   2.622  
   2.623    <p> Note that order is important in this property. The first value that can
   2.624     be parsed as a time is assigned to the animation-duration. The second
   2.625 @@ -1193,14 +1158,15 @@
   2.626     system</a>. The start and end of an animation, and the end of each
   2.627     iteration of an animation all generate DOM events. An element can have
   2.628     multiple properties being animated simultaneously. This can occur either
   2.629 -   with a single <a class=prop-name href="#animation-name">animation-name</a>
   2.630 -   value with keyframes containing multiple properties, or with multiple <a
   2.631 -   class=prop-name href="#animation-name">animation-name</a> values. For the
   2.632 -   purposes of events, each <a class=prop-name
   2.633 -   href="#animation-name">animation-name</a> specifies a single animation.
   2.634 -   Therefore an event will be generated for each <a class=prop-name
   2.635 -   href="#animation-name">animation-name</a> value and not necessarily for
   2.636 -   each property being animated.
   2.637 +   with a single <a href="#animation-name"><code
   2.638 +   class=property>animation-name</code></a> value with keyframes containing
   2.639 +   multiple properties, or with multiple <a href="#animation-name"><code
   2.640 +   class=property>animation-name</code></a> values. For the purposes of
   2.641 +   events, each <a href="#animation-name"><code
   2.642 +   class=property>animation-name</code></a> specifies a single animation.
   2.643 +   Therefore an event will be generated for each <a
   2.644 +   href="#animation-name"><code class=property>animation-name</code></a>
   2.645 +   value and not necessarily for each property being animated.
   2.646  
   2.647    <p> The time the animation has been running is sent with each event
   2.648     generated. This allows the event handler to determine the current
   2.649 @@ -1244,8 +1210,8 @@
   2.650          name=Events-AnimationEvent-animationName>animationName</a></code> of
   2.651          type <code>DOMString</code>, readonly
   2.652  
   2.653 -       <dd> The value of the <a class=prop-name
   2.654 -        href="#animation-name">animation-name</a> property of the animation
   2.655 +       <dd> The value of the <a href="#animation-name"><code
   2.656 +        class=property>animation-name</code></a> property of the animation
   2.657          that fired the event.
   2.658        </dl>
   2.659  
   2.660 @@ -1258,8 +1224,8 @@
   2.661         <dd> The amount of time the animation has been running, in seconds,
   2.662          when this event fired, excluding any time the animation was paused.
   2.663          For an "animationstart" event, the elapsedTime is zero unless there
   2.664 -        was a negative value for <a class=prop-name
   2.665 -        href="#animation-delay">animation-delay</a>, in which case the event
   2.666 +        was a negative value for <a href="#animation-delay"><code
   2.667 +        class=property>animation-delay</code></a>, in which case the event
   2.668          will be fired with an elapsedTime of (-1 * delay).
   2.669        </dl>
   2.670  
   2.671 @@ -1333,10 +1299,10 @@
   2.672     <dt> <b>animationstart</b>
   2.673  
   2.674     <dd> The &rsquo;animationstart' event occurs at the start of the
   2.675 -    animation. If there is an <a class=prop-name
   2.676 -    href="#animation-delay">animation-delay</a> then this event will fire
   2.677 -    once the delay period has expired. A negative delay will cause the event
   2.678 -    to fire with an elapsedTime equal to the absolute value of the delay.
   2.679 +    animation. If there is an <a href="#animation-delay"><code
   2.680 +    class=property>animation-delay</code></a> then this event will fire once
   2.681 +    the delay period has expired. A negative delay will cause the event to
   2.682 +    fire with an elapsedTime equal to the absolute value of the delay.
   2.683      <ul>
   2.684       <li>Bubbles: Yes
   2.685  
     3.1 --- a/css3-animations/Overview.src.html	Mon Jan 30 15:24:47 2012 +0000
     3.2 +++ b/css3-animations/Overview.src.html	Mon Jan 30 15:59:09 2012 +0000
     3.3 @@ -150,13 +150,13 @@
     3.4  
     3.5      <p>
     3.6        An animation applies to an element if the element has a value for
     3.7 -      <span class="prop-name">'animation-name'</span> that references a valid
     3.8 +      <code class="property">'animation-name'</code> that references a valid
     3.9        keyframes rule. Once an animation has started it continues until it ends
    3.10 -      or the <span class="prop-name">'animation-name'</span> is removed. The values
    3.11 +      or the <code class="property">'animation-name'</code> is removed. The values
    3.12        used for the keyframes and animation properties are snapshotted at the
    3.13        time the animation starts. Changing them during the execution of the
    3.14        animation has no effect. Note also, that changing the value of 
    3.15 -      <span class="prop-name">'animation-name'</span> does not necessarily
    3.16 +      <code class="property">'animation-name'</code> does not necessarily
    3.17        restart an animation (e.g. if a list of animations are applied and
    3.18        one is removed from the list, only that animation will stop; The other
    3.19        animations will continue). In order to restart an animation, it must be
    3.20 @@ -165,9 +165,9 @@
    3.21  
    3.22      <p>
    3.23        The end of the animation is defined by the combination of the
    3.24 -      <span class="prop-name">'animation-duration'</span>,
    3.25 -      <span class="prop-name">'animation-iteration-count'</span> and
    3.26 -      <span class="prop-name">'animation-fill-mode'</span> properties.
    3.27 +      <code class="property">'animation-duration'</code>,
    3.28 +      <code class="property">'animation-iteration-count'</code> and
    3.29 +      <code class="property">'animation-fill-mode'</code> properties.
    3.30      </p>
    3.31      
    3.32      <div class="example">
    3.33 @@ -205,12 +205,11 @@
    3.34          the animation may iterate one or more times.
    3.35        </p>
    3.36        <p>
    3.37 -        Keyframes are specified using a specialized CSS at-rule. A <span
    3.38 -        class="prop-name">@keyframes</span> rule consists of the keyword
    3.39 +        Keyframes are specified using a specialized CSS at-rule. A <code
    3.40 +        class="property">@keyframes</code> rule consists of the keyword
    3.41          "@keyframes", followed by an identifier giving a name for the animation
    3.42 -        (which will be referenced using <span
    3.43 -        class="prop-name">'animation-name'</span>), followed by a set of style
    3.44 -        rules (delimited by curly braces).
    3.45 +        (which will be referenced using <code class="property">'animation-name'</code>),
    3.46 +        followed by a set of style rules (delimited by curly braces).
    3.47        </p>
    3.48        <p>
    3.49          The <i>keyframe selector</i> for a keyframe style rule consists of a
    3.50 @@ -233,8 +232,8 @@
    3.51        <p>
    3.52          The <i>keyframe declaration</i> for a keyframe rule consists of
    3.53          properties and values. Properties that are unable to be
    3.54 -        animated are ignored in these rules, with the exception of <span
    3.55 -        class="prop-name">animation-timing-function</span>, the behavior 
    3.56 +        animated are ignored in these rules, with the exception of <code
    3.57 +        class="property">'animation-timing-function'</code>, the behavior 
    3.58          of which is described below.
    3.59        </p>
    3.60        <p class="note">
    3.61 @@ -242,15 +241,15 @@
    3.62        </p>
    3.63        <p>
    3.64          The @keyframes rule that is used by an animation will be the last one encountered in sorted rules order
    3.65 -        that matches the name of the animation specified by the <span class="prop-name">'animation-name'</span> property.
    3.66 -        <span class="prop-name">@keyframes</span> rules do not cascade;
    3.67 -        therefore an animation will never derive keyframes from more than one <span class="prop-name">@keyframes</span> rule.
    3.68 +        that matches the name of the animation specified by the <code class="property">'animation-name'</code> property.
    3.69 +        <code class="css">@keyframes</code> rules do not cascade;
    3.70 +        therefore an animation will never derive keyframes from more than one <code class="css">@keyframes</code> rule.
    3.71        </p>
    3.72        <p>
    3.73          To determine the set of keyframes, all of the values in the selectors are sorted in increasing order by time.
    3.74 -        If there are any duplicates, then the last keyframe specified inside the <span class="prop-name">@keyframes</span> rule
    3.75 +        If there are any duplicates, then the last keyframe specified inside the <code class="css">@keyframes</code> rule
    3.76          will be used to provide the keyframe information for that time. There is no cascading within a
    3.77 -        <span class="prop-name">@keyframes</span> rule if multiple keyframes specify the same keyframe selector values.
    3.78 +        <code class="css">@keyframes</code> rule if multiple keyframes specify the same keyframe selector values.
    3.79        </p>
    3.80        <p>
    3.81          If property is not specified for a keyframe, or is specified but invalid, the animation of that property proceeds
    3.82 @@ -263,7 +262,6 @@
    3.83          </p>
    3.84          <pre>
    3.85    @keyframes wobble {
    3.86 -
    3.87      0% {
    3.88        left: 100px;
    3.89      }
    3.90 @@ -279,7 +277,6 @@
    3.91      100% {
    3.92        left: 100px;
    3.93      }
    3.94 -
    3.95    }
    3.96  
    3.97    </pre>Four keyframes are specified for the animation named "wobble". In the first keyframe, shown at the beginning of the animation cycle, the 'left' value of the animation is 100px. By 40% of the animation duration, 'left' value has animated to 150px. At 60% of the animation duration, the 'left' value has animated back to 75px. At the end of the animation cycle, the 'left' value has returned to 100px. The diagram below shows the state of the animation if it were given a duration of 10s.
    3.98 @@ -350,15 +347,16 @@
    3.99    </pre>Five keyframes are specified for the animation named "bounce". Between the first and second keyframe (ie. between 0% and 25%) an "ease-out" timing function is used. Between the second and third keyframe (ie. between 25% and 50%) an "ease-in" timing function is used. And so on. The effect will appear as an element that moves up the page 50px, slowing down as it reaches its highest point then speeding up as it falls back to 100px. The second half of the animation behaves in a similar manner, but only moves the element 25px units up the page. A timing function specified on the "to" or 100% keyframe is ignored
   3.100        </div>
   3.101        <p>
   3.102 -        See <a href="#animation-timing-function_tag">the <span class="prop-name">'animation-timing-function'</span> property</a> for more information.
   3.103 +        See <a href="#animation-timing-function_tag">the <code class="property">'animation-timing-function'</code>
   3.104 +          property</a> for more information.
   3.105        </p><!-- ======================================================================================================= -->
   3.106  
   3.107        <!-- ======================================================================================================= -->
   3.108        <h3>
   3.109 -        The <span class="prop-name">'animation-name'</span> Property
   3.110 +        The <code class="property">'animation-name'</code> Property
   3.111        </h3>
   3.112        <p>
   3.113 -        The <span class="prop-name">'animation-name'</span> property defines a
   3.114 +        The <code class="property">'animation-name'</code> property defines a
   3.115          list of animations that apply. Each name is used to select the keyframe at-rule
   3.116          that provides the property values for the animation. If the name does
   3.117          not match any keyframe at-rule, there are no properties to be animated
   3.118 @@ -373,7 +371,7 @@
   3.119          for the other animation properties listed below. In the case where the
   3.120          other properties do not have lists of the correct length, their values
   3.121          are repeated to form a list with the same number of entries as
   3.122 -        <span class="prop-name">'animation-name'</span>.
   3.123 +        <code class="property">'animation-name'</code>.
   3.124        </p>
   3.125        <table class="propdef">
   3.126          <tbody>
   3.127 @@ -446,7 +444,7 @@
   3.128  
   3.129        <!--
   3.130        <p>
   3.131 -        It is possible for elements to have multiple animations running that change the same property or properties. In this case the animations combine in a manner defined by the property. For example, animations on <span class="prop-name">opacity</span> will add together and animations on <span class="prop-name">transform</span> will have their transformation matrices multiplied.
   3.132 +        It is possible for elements to have multiple animations running that change the same property or properties. In this case the animations combine in a manner defined by the property. For example, animations on <code class="property">'opacity'</code> will add together and animations on <code class="property">'transform'</code> will have their transformation matrices multiplied.
   3.133        </p>
   3.134        <div class="example">
   3.135          <p style="display:none">
   3.136 @@ -477,7 +475,7 @@
   3.137          }
   3.138        </pre>
   3.139        <p>
   3.140 -      The above example has two animations executing on the same property, <span class="prop-name">border-width</span>. The animations are additive. That is, the 
   3.141 +      The above example has two animations executing on the same property, <code class="property">'border-width'</code>. The animations are additive. That is, the 
   3.142        resulting value for the property will be the addition of the values from the
   3.143        two animations.
   3.144        </p>
   3.145 @@ -493,10 +491,10 @@
   3.146  
   3.147        <!-- ======================================================================================================= -->
   3.148        <h3>
   3.149 -        The <span class="prop-name">'animation-duration'</span> Property
   3.150 +        The <code class="property">'animation-duration'</code> Property
   3.151        </h3>
   3.152        <p>
   3.153 -        The <span class="prop-name">'animation-duration'</span> property defines the length of time that an animation takes to complete one cycle.
   3.154 +        The <code class="property">'animation-duration'</code> property defines the length of time that an animation takes to complete one cycle.
   3.155        </p>
   3.156        <table class="propdef">
   3.157          <tbody>
   3.158 @@ -569,9 +567,9 @@
   3.159  
   3.160        <p>
   3.161          By default the value is '0s', meaning that the animation cycle is
   3.162 -        immediate. A negative value for <span
   3.163 -        class="prop-name">animation-duration</span> is treated as '0s'. In this
   3.164 -        case <span class="prop-name">animation-fill-mode</span> still applies,
   3.165 +        immediate. A negative value for <code
   3.166 +        class="property">'animation-duration'</code> is treated as '0s'. In this
   3.167 +        case <code class="property">'animation-fill-mode'</code> still applies,
   3.168          so an animation that fills backwards will show the value of the 0%
   3.169          keyframe during any delay period, and an animation that fill forwards
   3.170          will retain the value specified at the 100% keyframe, even if the
   3.171 @@ -580,10 +578,10 @@
   3.172  
   3.173        <!-- ======================================================================================================= -->
   3.174        <h3 id="animation-timing-function_tag">
   3.175 -        The <span class="prop-name">'animation-timing-function'</span> Property
   3.176 +        The <code class="property">'animation-timing-function'</code> Property
   3.177        </h3>
   3.178        <p>
   3.179 -        The <span class="prop-name">'animation-timing-function'</span> property describes how the animation will progress over one cycle of its duration. See the <span class="prop-name">'transition-timing-function'</span> property [[!CSS3-TRANSITIONS]] for a complete description of timing function calculation.
   3.180 +        The <code class="property">'animation-timing-function'</code> property describes how the animation will progress over one cycle of its duration. See the <code class="property">'transition-timing-function'</code> property [[!CSS3-TRANSITIONS]] for a complete description of timing function calculation.
   3.181        </p>
   3.182        <table class="propdef">
   3.183          <tbody>
   3.184 @@ -655,16 +653,22 @@
   3.185        </table>
   3.186  
   3.187        <p>
   3.188 -        For a keyframed animation, the <span class="prop-name">'animation-timing-function'</span> applies
   3.189 -        between keyframes, not over the entire animation. For example, in the case of an ease-in-out timing function, an animation will ease in at the start of the keyframe and ease out at the end of the keyframe. A <span class="prop-name">'animation-timing-function'</span> defined within a keyframe block applies to that keyframe, otherwise the timing function specified for the animation is used.
   3.190 +        For a keyframed animation, the <code class="property">'animation-timing-function'</code> applies
   3.191 +        between keyframes, not over the entire animation. For example, in the case of an ease-in-out timing function, an animation will ease in at the start of the keyframe and ease out at the end of the keyframe. A <code class="property">'animation-timing-function'</code> defined within a keyframe block applies to that keyframe, otherwise the timing function specified for the animation is used.
   3.192        </p>
   3.193  
   3.194        <!-- ======================================================================================================= -->
   3.195        <h3>
   3.196 -        The <span class="prop-name">'animation-iteration-count'</span> Property
   3.197 +        The <code class="property">'animation-iteration-count'</code> Property
   3.198        </h3>
   3.199        <p>
   3.200 -        The <span class="prop-name">'animation-iteration-count'</span> property defines the number of times an animation cycle is played. The default value is one, meaning the animation will play from beginning to end once. A value of <span class="prop-value">'infinite'</span> will cause the animation to repeat forever. Non-integer numbers will cause the animation to end part-way through a cycle. Negative values of <span class="prop-name">'animation-iteration-count'</span> are invalid. This property is often used with an <span class="prop-name">'animation-direction'</span> value of <span class="prop-value">'alternate'</span>, which will cause the animation to play in reverse on alternate cycles.
   3.201 +        The <code class="property">'animation-iteration-count'</code> property defines the number of times
   3.202 +        an animation cycle is played. The default value is one, meaning the animation will play from
   3.203 +        beginning to end once. A value of <code class="css">'infinite'</code> will cause the animation to
   3.204 +        repeat forever. Non-integer numbers will cause the animation to end part-way through a cycle.
   3.205 +        Negative values of <code class="property">'animation-iteration-count'</code> are invalid.
   3.206 +        This property is often used with an <code class="property">'animation-direction'</code> value of
   3.207 +        <code class="css">alternate</code>, which will cause the animation to play in reverse on alternate cycles.
   3.208        </p>
   3.209        <table class="propdef">
   3.210          <tbody>
   3.211 @@ -735,10 +739,10 @@
   3.212          </tbody>
   3.213        </table><!-- ======================================================================================================= -->
   3.214        <h3>
   3.215 -        The <span class="prop-name">'animation-direction'</span> Property
   3.216 +        The <code class="property">'animation-direction'</code> Property
   3.217        </h3>
   3.218        <p>
   3.219 -        The <span class="prop-name">'animation-direction'</span> property defines whether or not the animation should play in reverse on alternate cycles. If <span class="prop-value">'alternate'</span> is specified, the animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction. When an animation is played in reverse the timing functions are also reversed. For example, when played in reverse an ease-in animation would appear to be an ease-out animation.
   3.220 +        The <code class="property">'animation-direction'</code> property defines whether or not the animation should play in reverse on alternate cycles. If <code class="css">alternate</code> is specified, the animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction. When an animation is played in reverse the timing functions are also reversed. For example, when played in reverse an ease-in animation would appear to be an ease-out animation.
   3.221        </p>
   3.222        <table class="propdef">
   3.223          <tbody>
   3.224 @@ -809,11 +813,11 @@
   3.225          </tbody>
   3.226        </table><!-- ======================================================================================================= -->
   3.227        <h3>
   3.228 -        The <span class="prop-name">'animation-play-state'</span> Property
   3.229 +        The <code class="property">'animation-play-state'</code> Property
   3.230        </h3>
   3.231  
   3.232        <p>
   3.233 -        The <span class="prop-name">'animation-play-state'</span> property defines whether the animation is running or paused. A running animation can be paused by setting this property to <span class="prop-value">'paused'</span>. To continue running a paused animation this property can be set to <span class="prop-value">'running'</span>. A paused animation will continue to display the current value of the animation in a static state, as if the time of the animation is constant. When a paused animation is resumed, it restarts from the current value, not necessarily from the beginning of the animation.
   3.234 +        The <code class="property">'animation-play-state'</code> property defines whether the animation is running or paused. A running animation can be paused by setting this property to <code class="css">'paused'</code>. To continue running a paused animation this property can be set to <code class="css">'running'</code>. A paused animation will continue to display the current value of the animation in a static state, as if the time of the animation is constant. When a paused animation is resumed, it restarts from the current value, not necessarily from the beginning of the animation.
   3.235        </p>
   3.236        <table class="propdef">
   3.237          <tbody>
   3.238 @@ -884,26 +888,25 @@
   3.239          </tbody>
   3.240        </table><!-- ======================================================================================================= -->
   3.241        <h3>
   3.242 -        The <span class="prop-name">'animation-delay'</span> Property
   3.243 +        The <code class="property">'animation-delay'</code> Property
   3.244        </h3>
   3.245        <p>
   3.246 -        The <span class="prop-name">'animation-delay'</span> property defines
   3.247 +        The <code class="property">'animation-delay'</code> property defines
   3.248          when the animation will start. It allows an animation to begin
   3.249 -        execution some time after it is applied. An <span
   3.250 -        class="prop-name">'animation-delay'</span> value of '0s' means the
   3.251 +        execution some time after it is applied. An <code
   3.252 +        class="property">'animation-delay'</code> value of '0s' means the
   3.253          animation will execute as soon as it is applied. Otherwise, the value
   3.254          specifies an offset from the moment the animation is applied, and the
   3.255          animation will delay execution by that offset.
   3.256        </p>
   3.257        <p>
   3.258 -        If the value for <span class="prop-name">'animation-delay'</span> is a
   3.259 +        If the value for <code class="property">'animation-delay'</code> is a
   3.260          negative time offset then the animation will execute the moment it is
   3.261          applied, but will appear to have begun execution at the specified
   3.262          offset. That is, the animation will appear to begin part-way through
   3.263          its play cycle. In the case where an animation has implied starting
   3.264 -        values and a negative <span
   3.265 -        class="prop-name">'animation-delay'</span>, the starting values are
   3.266 -        taken from the moment the animation is applied.
   3.267 +        values and a negative <code class="property">'animation-delay'</code>,
   3.268 +        the starting values are taken from the moment the animation is applied.
   3.269        </p>
   3.270        <table class="propdef">
   3.271          <tbody>
   3.272 @@ -974,41 +977,41 @@
   3.273          </tbody>
   3.274        </table><!-- ======================================================================================================= -->
   3.275        <h3>
   3.276 -        The <span class="prop-name">'animation-fill-mode'</span> Property
   3.277 +        The <code class="property">'animation-fill-mode'</code> Property
   3.278        </h3>
   3.279        <p>
   3.280 -        The <span class="prop-name">'animation-fill-mode'</span> property defines
   3.281 +        The <code class="property">'animation-fill-mode'</code> property defines
   3.282          what values are applied by the animation outside the time it is executing.
   3.283          By default, an animation will not affect property values between the
   3.284 -        time it is applied (the <span class="prop-name">'animation-name'</span> property is
   3.285 +        time it is applied (the <code class="property">'animation-name'</code> property is
   3.286          set on an element) and the time it begins execution (which is determined by
   3.287 -        the <span class="prop-name">'animation-delay'</span> property). Also, by
   3.288 +        the <code class="property">'animation-delay'</code> property). Also, by
   3.289          default an animation does not affect property values after the animation
   3.290 -        ends (determined by the <span class="prop-name">'animation-duration'</span> property).
   3.291 -        The value of <span class="prop-name">'animation-fill-mode'</span> can
   3.292 +        ends (determined by the <code class="property">'animation-duration'</code> property).
   3.293 +        The value of <code class="property">'animation-fill-mode'</code> can
   3.294          override this behavior.
   3.295        </p>
   3.296        <p>
   3.297 -        If the value for <span class="prop-name">'animation-fill-mode'</span> is
   3.298 -        <span class="prop-value">'backwards'</span>, then the animation will
   3.299 +        If the value for <code class="property">'animation-fill-mode'</code> is
   3.300 +        <code class="css">'backwards'</code>, then the animation will
   3.301          apply the property values defined in its 0% or 'from' keyframe as soon
   3.302          as the animation is applied, during the period defined by
   3.303 -        <span class="prop-name">'animation-delay'</span>.
   3.304 +        <code class="property">'animation-delay'</code>.
   3.305        </p>
   3.306        <p>
   3.307 -        If the value for <span class="prop-name">'animation-fill-mode'</span>
   3.308 -        is <span class="prop-value">'forwards'</span>, then the animation will
   3.309 +        If the value for <code class="property">'animation-fill-mode'</code>
   3.310 +        is <code class="css">'forwards'</code>, then the animation will
   3.311          apply the property values defined in its last executing keyframe after
   3.312          the final iteration of the animation, until the animation style is
   3.313          removed. The last executing keyframe is the 'to' or '100%' keyframe,
   3.314 -        unless the animation has <span
   3.315 -        class="prop-name">'animation-direction'</span> set to <span
   3.316 -        class="prop-value">'alternate'</span> and both a finite and even
   3.317 +        unless the animation has <code
   3.318 +        class="property">'animation-direction'</code> set to <code
   3.319 +        class="css">'alternate'</code> and both a finite and even
   3.320          iteration count, in which case it is the 'from' or '0%' keyframe.
   3.321        </p>
   3.322        <p>
   3.323 -        If the value for <span class="prop-name">'animation-fill-mode'</span>
   3.324 -        is <span class="prop-value">'both'</span>, then the animation will
   3.325 +        If the value for <code class="property">'animation-fill-mode'</code>
   3.326 +        is <code class="css">'both'</code>, then the animation will
   3.327          follow the rules for both 'forwards' and 'backwards'. That is, it will
   3.328          extend the animation properties in both directions.
   3.329        </p>
   3.330 @@ -1081,10 +1084,10 @@
   3.331          </tbody>
   3.332        </table><!-- ======================================================================================================= -->
   3.333        <h3>
   3.334 -        The <span class="prop-name">'animation'</span> Shorthand Property
   3.335 +        The <code class="property">'animation'</code> Shorthand Property
   3.336        </h3>
   3.337        <p>
   3.338 -        The <span class="prop-name">'animation'</span> shorthand property
   3.339 +        The <code class="property">'animation'</code> shorthand property
   3.340          combines seven of the animation properties into a single property.
   3.341        </p>
   3.342        <p>
   3.343 @@ -1187,12 +1190,12 @@
   3.344          system</a>. The start and end of an animation, and the end of each
   3.345          iteration of an animation all generate DOM events. An element can have
   3.346          multiple properties being animated simultaneously. This can occur either
   3.347 -        with a single <span class="prop-name">animation-name</span> value with
   3.348 -        keyframes containing multiple properties, or with multiple <span
   3.349 -        class="prop-name">animation-name</span> values. For the purposes of
   3.350 -        events, each <span class="prop-name">animation-name</span> specifies a
   3.351 -        single animation. Therefore an event will be generated for each <span
   3.352 -        class="prop-name">animation-name</span> value and not necessarily for
   3.353 +        with a single <code class="property">animation-name</code> value with
   3.354 +        keyframes containing multiple properties, or with multiple <code
   3.355 +        class="property">animation-name</code> values. For the purposes of
   3.356 +        events, each <code class="property">animation-name</code> specifies a
   3.357 +        single animation. Therefore an event will be generated for each <code
   3.358 +        class="property">animation-name</code> value and not necessarily for
   3.359          each property being animated.
   3.360        </p>
   3.361        <p>
   3.362 @@ -1239,8 +1242,7 @@
   3.363                    <code class='attribute-name'><a id="Events-AnimationEvent-animationName" name='Events-AnimationEvent-animationName'>animationName</a></code> of type <code>DOMString</code>, readonly
   3.364                  </dt>
   3.365                  <dd>
   3.366 -                  The value of the <span
   3.367 -                  class="prop-name">animation-name</span> property of the
   3.368 +                  The value of the <code class="property">animation-name</code> property of the
   3.369                    animation that fired the event.
   3.370                  </dd>
   3.371                </dl>
   3.372 @@ -1253,7 +1255,7 @@
   3.373                    seconds, when this event fired, excluding any time the
   3.374                    animation was paused. For an "animationstart" event, the
   3.375                    elapsedTime is zero unless there was a negative value for
   3.376 -                  <span class="prop-name">animation-delay</span>, in which
   3.377 +                  <code class="property">animation-delay</code>, in which
   3.378                    case the event will be fired with an elapsedTime of (-1 *
   3.379                    delay).
   3.380                  </dd>
   3.381 @@ -1328,8 +1330,8 @@
   3.382            <b>animationstart</b>
   3.383          </dt>
   3.384          <dd>
   3.385 -          The 'animationstart' event occurs at the start of the animation. If there is an <span
   3.386 -          class="prop-name">animation-delay</span> then this event will fire once the delay period
   3.387 +          The 'animationstart' event occurs at the start of the animation. If there is an
   3.388 +          <code class="property">animation-delay</code> then this event will fire once the delay period
   3.389            has expired. A negative delay will cause the event to fire with an elapsedTime equal to
   3.390            the absolute value of the delay.
   3.391            <ul>

mercurial