Skip to content

[scroll-animations-1] Explicit auto for animation-duration in the animation shorthand. #8656

@fantasai

Description

@fantasai

As a follow up to #6530, @cdoublev filed #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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions