Re: [csswg-drafts] [cssom-view-1] Provide onAnimationEnd callback in scrollIntoView options (#3744)

_(I had this comment in draft in a lost open tab, but seems like I didn’t hit publish. It’s basically the same what Emilio says)_

FYI: in https://github.com/w3c/csswg-drafts/issues/1562#issuecomment-389586317 we resolved to _promisify_ all scroll methods, which will allow to `await` a `scrollIntoView`, `scrollTo`, etc.

There is an explainer up at https://github.com/explainers-by-googlers/promisify-scroll and this is currently being prototyped in Chrome. 

There is also the `scrollend` event that you can use today _(modulo browser support)_ in many cases, but not all (as [mentioned here](https://github.com/w3c/csswg-drafts/issues/3744#issuecomment-2270225641)).

As a result, I don’t see much point in further pursuing `onAnimationEnd` because I believe we have this use-case covered by the other features I just mentioned.

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


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

Received on Thursday, 9 October 2025 19:55:38 UTC