[csswg-drafts] [css-animations-2] Should the initial value for animation-duration be auto? (#6530)

flackr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-animations-2] Should the initial value for animation-duration be auto? ==
[css-animations-1](https://drafts.csswg.org/css-animations/#animation-duration) defines the initial value of animation-duration to be 0s. However, the web-animations specification [allows for the 'auto' keyword](https://drafts.csswg.org/web-animations-1/#dom-effecttiming-duration) which is useful for scroll-animations and group animations where the duration should be [determined automatically](https://drafts.csswg.org/web-animations-2/#duration).

Since the computed value of 'auto' for regular animations is 0s, it seems to me that we could safely change the initial value of animation-duration to be 'auto', and this would allow using a scroll-timeline animation or possibly a group effect animation without having to explicitly set the auto duration.

@birtles WDYT?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6530 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 20 August 2021 02:23:15 UTC