Skip to content

Commit accb214

Browse files
committed
[css-animations-1][css-animations-2] Define 'animation-*' as a coordinated list property group.
1 parent f1332c8 commit accb214

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

css-animations-1/Overview.bs

+13-12
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,19 @@ Timing functions for keyframes</h3>
440440
Declaring Animations</h2>
441441

442442
CSS Animations are defined by binding keyframes to an element
443-
using the 'animation' properties.
443+
using the 'animation-*' properties.
444+
These list-valued properties,
445+
which are all [=longhands=] of the 'animation' [=shorthand=],
446+
form a [=coordinating list property group=]
447+
with 'animation-name' as the [=coordinating list base property=]
448+
and each item in the [=coordinated value list=]
449+
defining the properties of a single animation effect.
450+
451+
Note: This is analogous to the behavior of the 'background-*' properties,
452+
with 'background-image' analogous to 'animation-name'.
453+
454+
See [[css-values-4#linked-properties]]
455+
for how the individual 'animation-*' property values coordinate.
444456

445457
<h3 id="animation-name">
446458
The 'animation-name' property</h3>
@@ -452,17 +464,6 @@ The 'animation-name' property</h3>
452464
used to override any animations coming from the cascade. If multiple animations are attempting to
453465
modify the same property, then the animation closest to the end of the list of names wins.
454466

455-
Each animation listed by name should have a corresponding value for the other animation properties
456-
listed below. If the lists of values for the other animation properties do not have the same length,
457-
the length of the 'animation-name' list determines the number of items in each list examined when
458-
starting animations. The lists are matched up from the first value: excess values at the end are not
459-
used. If one of the other properties doesn't have enough comma-separated values to match the number of
460-
values of 'animation-name', the UA must calculate its used value by repeating the list of values until
461-
there are enough. This truncation or repetition does not affect the computed value.
462-
463-
Note: This is analogous to the behavior of the 'background-*' properties, with
464-
'background-image' analogous to 'animation-name'.
465-
466467
<pre class='propdef'>
467468
Name: animation-name
468469
Value: [ none | <<keyframes-name>> ]#

css-animations-2/Overview.bs

+10-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,16 @@ requirement to iterate in reverse.
381381
Declaring Animations</h2>
382382
383383
CSS Animations are defined by binding keyframes to an element
384-
using the 'animation' properties.
384+
using the 'animation-*' properties.
385+
These list-valued properties,
386+
which are all [=longhands=] of the 'animation' [=shorthand=],
387+
form a [=coordinating list property group=]
388+
with 'animation-name' as the [=coordinating list base property=]
389+
and each item in the [=coordinated value list=]
390+
defining the properties of a single animation effect.
391+
392+
See [[css-values-4#linked-properties]]
393+
for how the individual 'animation-*' property values coordinate.
385394
386395
## The 'animation-duration' property ## {#animation-duration}
387396

0 commit comments

Comments
 (0)