web-platform-tests / interop

web-platform-tests Interop project
https://wpt.fyi/interop
315 stars 28 forks source link

Scrollend Events #528

Closed jgraham closed 9 months ago

jgraham commented 1 year ago

Description

The scrollend event is fired when a scroll is completed. Not only is this helpful for web developers that wish to be notified when a scroll is completed, but this has the potential to improve the reliability of other wpt tests. (See the various wait for scroll end functions that currently exist).

Specification

https://drafts.csswg.org/cssom-view/ (scrollend, scroll-completed, and scrolling-events)

Open Issues

No response

Tests

dom/events/scrolling/scrollend-*

Current Implementations

Standards Positions

https://github.com/WebKit/standards-positions/issues/150

Browser bug reports

https://bugs.webkit.org/show_bug.cgi?id=201556 https://bugzilla.mozilla.org/show_bug.cgi?id=1785102

Developer discussions

No response

Polls & Surveys

No response

Existing Usage

Chrome use counter.

Workarounds

No response

Accessibility Impact

No response

Privacy Impact

No response

Other

No response

jgraham commented 1 year ago

CC @dlrobertson @hiikezoe @theres-waldo

dlrobertson commented 1 year ago

Note that the scrollend tests currently make use of touch scrolls for many of the tests. While testing scrollend for touch scrolls is helpful. It might make sense to move the vast majority of the webdriver action driven scrolls to use a normal scroll. See https://github.com/web-platform-tests/wpt/issues/42324.

gsnedders commented 1 year ago

Given Safari doesn't support touch events on macOS, the tests as currently written would still fail even if Safari supported scrollend.

dlrobertson commented 1 year ago

Given Safari doesn't support touch events on macOS, the tests as currently written would still fail even if Safari supported scrollend.

@gsnedders yeah that makes sense. I'll create a PR to update the tests.

foolip commented 11 months ago

@dlrobertson did you get around to updating tests?

@gsnedders could this be tested with a scroll wheel fling? It is possible to scroll on macOS, as a user, after all :)

dlrobertson commented 11 months ago

@dlrobertson did you get around to updating tests?

I just created https://github.com/web-platform-tests/wpt/pull/43493. Note that the following tests were not updated:

The other tests do not seem to use touch scrolls.

dlrobertson commented 11 months ago

If limiting the tests to cases that use programmatic scrolls, would be a reasonable subset to get some form of scrollend into interop, the following tests use only programmatic scrolls:

nairnandu commented 9 months ago

Thank you for proposing Scrollend Events for inclusion in Interop 2024.

We wanted to let you know that this proposal was not selected to be part of Interop 2024. This is because we got many more proposals than we could include in this year's project. Note that individual vendors may nevertheless choose to advance work in this area during the forthcoming year. We would welcome this proposal being resubmitted again next year, if necessary.

For an overview of our process, see proposal selection. Thank you again for contributing to Interop 2024!

Posted on behalf of the Interop team.