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

I think this bit of code in [Chrome's `Animation::UpdateFinishedState()`](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/animation/animation.cc;l=1797;drc=277f4ab48eb85f7441f78aed191c31068ce89814)  is also relevant to the WPT test, though not the reduced test I posted:

```c++
  // TODO(kevers): Add a new step to the spec.
  // Clear finished state and abort the procedure if play-pending and waiting
  // for a new start time.
  if (timeline_ && timeline_->IsScrollTimeline() && pending_play_ &&
      auto_align_start_time_) {
    finished_ = false;
    pending_finish_notification_ = false;
    committed_finish_notification_ = false;
    return;
  }
```

-- 
GitHub Notification of comment by graouts
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11270#issuecomment-2498943762 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 20:14:30 UTC