Skip to content

Commit bb3a7c2

Browse files
committed
[css-animations-2] Make animation-duration:auto resolve to 0s for legacy compat #6530
1 parent 061a3b6 commit bb3a7c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

css-animations-2/Overview.bs

+6
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,12 @@ Declaring Animations</h2>
462462
However, if 'animation-fill-mode' is set to ''animation-fill-mode/none''
463463
the keyframes of the animation animation will have no noticeable effect.
464464
465+
For backwards-compatibility with Level 1,
466+
when the [=computed value=] of 'animation-timeline' is ''animation-timeline/auto''
467+
(i.e. only one list value, and that value being ''animation-timeline/auto''),
468+
the [=resolved value=] of ''animation-duration/auto'' for 'animation-duration'
469+
is ''0s'' whenever its [=used value=] would also be ''0s''.
470+
465471
## The 'animation-timing-function' property ## {#animation-timing-function}
466472
467473
The 'animation-timing-function' is used to determine the [=timing function=]

0 commit comments

Comments
 (0)