Skip to content

Commit df02c46

Browse files
author
Sylvain Galineau
committed
[css3-animations] Require one valid keyframe rule to run an animation; add a note on the validity of empty keyframes rules (bug 15251)
1 parent 7a1261f commit df02c46

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

css3-animations/Overview.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,10 @@ <h2 id=keyframes><span class=secno>3. </span> Keyframes</h2>
437437
percentage values or values higher than 100%, then the keyframe will be
438438
ignored.
439439

440+
<p> At least one valid keyframe rule must be specified in order for the
441+
animation to run. This requirement does not include rules constructed by
442+
the user agent.
443+
440444
<p> The <dfn id=keyframe-declaration-block>keyframe declaration block</dfn>
441445
for a keyframe rule consists of properties and values. Properties that are
442446
unable to be animated are ignored in these rules, with the exception of
@@ -455,6 +459,10 @@ <h2 id=keyframes><span class=secno>3. </span> Keyframes</h2>
455459
not cascade; therefore, an animation will never derive keyframes from more
456460
than one @keyframes rule.
457461

462+
<p class=note> Note that since empty @keyframes rule are valid, they may
463+
hide the keyframes of those preceding animation definitions with a
464+
matching name.
465+
458466
<p> To determine the set of keyframes, all of the values in the selectors
459467
are sorted in increasing order by time. If there are any duplicates, then
460468
the last keyframe specified inside the @keyframes rule will be used to

css3-animations/Overview.src.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ <h2 id="keyframes">
266266
negative percentage values or
267267
values higher than 100%,
268268
then the keyframe will be ignored.
269+
270+
<p>
271+
At least one valid keyframe rule must be specified in order for the animation
272+
to run. This requirement does not include rules constructed by the user agent.
269273

270274
<p>
271275
The <dfn>keyframe declaration block</dfn> for a keyframe rule
@@ -283,6 +287,10 @@ <h2 id="keyframes">
283287
that matches the name of the animation specified by the 'animation-name' property.
284288
@keyframes rules do not cascade;
285289
therefore, an animation will never derive keyframes from more than one @keyframes rule.
290+
291+
<p class='note'>
292+
Note that since empty @keyframes rule are valid, they may hide the keyframes of
293+
those preceding animation definitions with a matching name.
286294

287295
<p>
288296
To determine the set of keyframes,

0 commit comments

Comments
 (0)