Skip to content

Commit 8d9a1d7

Browse files
committed
[web-animations-1] Add repeatable list concept from CSS Transitions
1 parent 63788b0 commit 8d9a1d7

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

web-animations-1/Overview.bs

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3025,7 +3025,27 @@ in each property's property definition table:
30253025
If the number of components or the types of corresponding components
30263026
do not match,
30273027
or if any component value uses [=discrete=] animation,
3028-
the property value as a whole falls back to [=discrete=].
3028+
then the property values combine as [=discrete=].
3029+
3030+
<dt><dfn>repeatable list</dfn>
3031+
<dd>
3032+
Same as <a>by computed value</a>
3033+
except that if the two lists have differing numbers of items,
3034+
they are first repeated to the least common multiple number of items.
3035+
Each item is then combined <a>by computed value</a>.
3036+
If a pair of values cannot be combined
3037+
or if any component value uses [=discrete=] animation,
3038+
then the property values combine as [=discrete=].
3039+
3040+
Note: The repeatable list concept ensures that
3041+
a list that is conceptually repeated to a certain length
3042+
(as 'background-origin' is repeated to the length of
3043+
the 'background-image' list)
3044+
or repeated infinitely
3045+
will smoothly transition between any values,
3046+
and so that the computed value
3047+
will properly represent the result
3048+
(and potentially be inherited correctly).
30293049

30303050
<dt>(See prose)
30313051
<dd>
@@ -3035,8 +3055,6 @@ in each property's property definition table:
30353055
for that property.
30363056
</dl>
30373057

3038-
<!-- TODO: Define repeatable lists -->
3039-
30403058
<h4 id=custom-properties>
30413059
Custom Properties</h4>
30423060

0 commit comments

Comments
 (0)