Open Bug 1960053 Opened 19 days ago Updated 13 hours ago

scroll-snap-align: start may lead to erratic scrolling in some cases

Categories

(Core :: Layout: Scrolling and Overflow, defect, P2)

Firefox 139
defect

Tracking

()

UNCONFIRMED

People

(Reporter: nayinain, Assigned: dlrobertson)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files, 2 obsolete files)

Attached file testcase.html (obsolete) —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0

Steps to reproduce:

  1. Open the testcase.html.
  2. Refresh the page with Ctrl + F5.
  3. Use the mouse wheel to scroll down several lines in the list, e.g., scroll to the 7th item.
  4. Drag the scrollbar to continue scrolling down several lines.
  5. Click the list.
  6. If unable to reproduce, repeat steps 2-5.

Actual results:

The list will eventually snap back to the 7th item.

Expected results:

The list should not snap back unexpectedly.


Sorry for my bad English.

Attached video Capture.webm (obsolete) —

The last know good build is 2023-10-30,
The first know bad build is 2023-10-31.

I used mozregression-gui to regression bisection, but could only narrow the issue down to 2023-10-31 due to Unable to find enough data to bisect.

Has STR: --- → yes
Keywords: regression
Attached file simplifyTestCase2.html

Steps to reproduce:

  1. Open the simplifyTestCase2.html.
  2. Refresh the page with Ctrl + F5.
  3. Use the mouse wheel to scroll down several lines in the list, e.g., scroll to the 7th item.
  4. Click the "Scroll down" button.
  5. Click the list.
  6. If unable to reproduce, repeat steps 2-5.
Attached video 2.webm
Attachment #9478644 - Attachment is obsolete: true
Attachment #9478645 - Attachment is obsolete: true

The severity field is not set for this bug.
:hiro, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(hikezoe.birchill)

Thanks for filing, and thank you for finding a regression window, this is very helpful!

(In reply to nayinain from comment #2)

The last know good build is 2023-10-30,
The first know bad build is 2023-10-31.

For reference, the commit range corresponding to these dates is https://hg-edge.mozilla.org/mozilla-central/pushloghtml?fromchange=9c6272da5dc92ff944d294d9a026bd42a408c784&tochange=2c44d59dd29eb01ea0b484c9f3f8691861118073.

You are right that in that range, bug 1827975 and bug 1831580 are the ones which seem related to scrolling.

Using a local backout, I confirmed that bug 1831580 is the regressing change.

Severity: -- → S3
Depends on: 1831580
Flags: needinfo?(hikezoe.birchill)
Priority: -- → P2

:nayinain, since this bug is a regression, could you fill (if possible) the regressed_by field?
For more information, please visit BugBot documentation.

Flags: needinfo?(nayinain)
Flags: needinfo?(nayinain)
Regressed by: 1831580

:dlrobertson, since you are the author of the regressor, bug 1831580, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(drobertson)

Started investigating this and found the specific change that causes this... Still figuring out a way to fix this in a way that doesn't regress bug 1831580

Assignee: nobody → drobertson
Flags: needinfo?(drobertson)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: