- From: Robert Flack via GitHub <noreply@w3.org>
- Date: Thu, 02 Apr 2026 18:08:11 +0000
- To: public-css-archive@w3.org
flackr has just created a new issue for https://github.com/w3c/csswg-drafts: == [cssom-view] Element.scrolled promise? == In #1562 we resolved that the scrolling apis return promises, however what if the scroll wasn't programmatically initiated or has already been initiated? In the web animation api you can use the [finished](https://drafts.csswg.org/web-animations-1/#dom-animation-finished) property of an active animation to wait until it is finished. I think it would be useful to have a similar property for scroll promises, e.g. `Element.scrolled`, to return the current scroll finished promise (or a resolved promise if no scrolling is ongoing) for that scroll container. There is definitely some additional complexity here since we would have to define when non-programmatic scroll promises end, e.g. does each down arrow keypress start a new scroll or extend the life of the previous, but it may be useful both in wpt testing and in scroll listeners. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13760 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 2 April 2026 18:08:12 UTC