Re: [csswg-drafts] [scroll-animations][web-animations-2] rewinding a finished scroll-driven animation and playing it again (#11270)

I suspect the following branch of chrome's implementation of play is responsible for the behavior observed here:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/animation/animation.cc;l=1647;drc=277f4ab48eb85f7441f78aed191c31068ce89814;bpv=1;bpt=1:
```c++
  if (has_finite_timeline && auto_rewind == AutoRewind::kEnabled) {
    auto_align_start_time_ = true;
    hold_time_ = CurrentTimeInternal();
  }
```

This appears right before what currently seems to be step 8 of [playing an animation](https://drafts.csswg.org/web-animations-2/#playing-an-animation-section), however I'm guessing this may not have been properly spec'd.

Alternately, we could probably consider this call to play to be a no-op as part of step 10 but then I think we would expect the log at step 3 to match step 2.

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


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

Received on Monday, 25 November 2024 17:32:15 UTC