[css3-animations] Require one valid keyframe rule to run an animation; add a note on the validity of empty keyframes rules (bug 15251)

Mon, 17 Dec 2012 18:30:07 -0800

author
Sylvain Galineau <sylvaing@microsoft.com>
date
Mon, 17 Dec 2012 18:30:07 -0800
changeset 7141
f06f034ec00d
parent 7140
f661fd2d5fbe
child 7142
5424af9c8626

[css3-animations] Require one valid keyframe rule to run an animation; add a note on the validity of empty keyframes rules (bug 15251)

css3-animations/Overview.html file | annotate | diff | comparison | revisions
css3-animations/Overview.src.html file | annotate | diff | comparison | revisions
     1.1 --- a/css3-animations/Overview.html	Mon Dec 17 17:58:23 2012 -0800
     1.2 +++ b/css3-animations/Overview.html	Mon Dec 17 18:30:07 2012 -0800
     1.3 @@ -437,6 +437,10 @@
     1.4     percentage values or values higher than 100%, then the keyframe will be
     1.5     ignored.
     1.6  
     1.7 +  <p> At least one valid keyframe rule must be specified in order for the
     1.8 +   animation to run. This requirement does not include rules constructed by
     1.9 +   the user agent.
    1.10 +
    1.11    <p> The <dfn id=keyframe-declaration-block>keyframe declaration block</dfn>
    1.12     for a keyframe rule consists of properties and values. Properties that are
    1.13     unable to be animated are ignored in these rules, with the exception of
    1.14 @@ -455,6 +459,10 @@
    1.15     not cascade; therefore, an animation will never derive keyframes from more
    1.16     than one @keyframes rule.
    1.17  
    1.18 +  <p class=note> Note that since empty @keyframes rule are valid, they may
    1.19 +   hide the keyframes of those preceding animation definitions with a
    1.20 +   matching name.
    1.21 +
    1.22    <p> To determine the set of keyframes, all of the values in the selectors
    1.23     are sorted in increasing order by time. If there are any duplicates, then
    1.24     the last keyframe specified inside the @keyframes rule will be used to
     2.1 --- a/css3-animations/Overview.src.html	Mon Dec 17 17:58:23 2012 -0800
     2.2 +++ b/css3-animations/Overview.src.html	Mon Dec 17 18:30:07 2012 -0800
     2.3 @@ -266,6 +266,10 @@
     2.4  		negative percentage values or
     2.5  		values higher than 100%,
     2.6  		then the keyframe will be ignored.
     2.7 +
     2.8 +	<p>
     2.9 +		At least one valid keyframe rule must be specified in order for the animation
    2.10 +		to run. This requirement does not include rules constructed by the user agent.
    2.11  	
    2.12  	<p>
    2.13  		The <dfn>keyframe declaration block</dfn> for a keyframe rule 
    2.14 @@ -283,6 +287,10 @@
    2.15  		that matches the name of the animation specified by the 'animation-name' property. 
    2.16  		@keyframes rules do not cascade; 
    2.17  		therefore, an animation will never derive keyframes from more than one @keyframes rule.
    2.18 +
    2.19 +	<p class='note'>
    2.20 +		Note that since empty @keyframes rule are valid, they may hide the keyframes of 
    2.21 +		those preceding animation definitions with a matching name.
    2.22  			
    2.23  	<p>
    2.24  		To determine the set of keyframes, 

mercurial