Re: [csswg-drafts] [web-animations-1] [scroll-animations-1] Support automatic duration scroll animations #4862 (#4890)

> This looks very reasonable to me. I am surprised how little change it required.
> 
> > The only change to existing behavior is that no supplied animation duration would result in an infinite duration (from the DocumentTimeline) rather than 0 duration as defined today.
> 
> What is the web-compat impact of this?

It's actually very minimal, and could be removed if we felt necessary. Previously the value `auto` for EffectTiming duration would be treated as 0, and with this proposal as is, it would now be infinite. This means if you didn't specify a duration for an animation it would hold its 0 value forever instead of having no effect. I would expect that 'auto' duration animations are extremely rare as it's not currently a meaningful value.

As I was suggesting, we could make an exemption that `auto` for infinite duration timelines still resolves to 0, which would make it completely backwards compatible with the existing web surface.

-- 
GitHub Notification of comment by flackr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/4890#issuecomment-608457810 using your GitHub account

Received on Friday, 3 April 2020 14:16:04 UTC