[csswg-drafts] [scroll-animations-1] Explicit `auto` for `animation-duration` in the `animation` shorthand. (#8656)

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

== [scroll-animations-1] Explicit `auto` for `animation-duration` in the `animation` shorthand. ==
As a follow up to https://github.com/w3c/csswg-drafts/issues/6530, @cdoublev filed https://github.com/w3c/csswg-drafts/pull/8570 to allow `auto` to be parsed in as a value for `animation-duration` when listed in the `animation` shorthand. This issue is to discuss whether we want to do that, given the complications of parsing `animation`.

Pros:
* Allows any value of `animation-duration` to be inlined into the `animation` property.

Cons:
* Conflicts with any other use of `auto`. This is unlikely to be a cause problems with keyframes names (which are unlikely to be named “auto”), but it could prevent us from easily inlining some other longhand of `animation` in the future.

Notes:
* It's easy to declare an `auto` value for `animation-duration` in the `animation` shorthand by simply omitting the duration, since it's the initial value.

Opening this issue to invite discussion about which way to go here.

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


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

Received on Tuesday, 28 March 2023 20:29:04 UTC