Open Bug 1899380 Opened 3 months ago Updated 4 days ago

Scroll position snaps back to start, with `scroll-snap` and fractional margin

Categories

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

defect

Tracking

()

Tracking Status
firefox-esr115 --- wontfix
firefox126 --- wontfix
firefox127 --- wontfix
firefox128 --- fix-optional

People

(Reporter: dholbert, Unassigned)

References

(Depends on 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(3 files)

Attached file testcase 1

[Spinning this off from bug 1850485, for an issue that I identified while poking at that. I'm not entirely sure that this is the full explanation there, but it might be.]

STR:

  1. Load attached testcase.
  2. Click the button a few times to increase the scroll position. Or, simply click and drag the scrollbar (in the scrollable box) all the way to the right.

EXPECTED RESULTS:
The scrollable box should be able to reach to the maximum (rightmost) position, and you should see the text "SUCCESS" when it reaches that position.

ACTUAL RESULTS:

  • The scrollbar resets back to the start (leftmost) position, when you would expect it to reach the right edge.
  • You can scroll to intermediate positions, but when it reaches the right edge (or potentially surpasses it via clicking the button), it unexpectedly resets (snaps back to the start).
Attached file reference case

Here's a reference case, where I simply changed margin-inline-start from 10.5 to 11px.

This is sufficient to make the testcase give EXPECTED RESULTS.

Keywords: regression
Regressed by: 1817126

Set release status flags based on info from the regressing bug 1817126

:hiro, since you are the author of the regressor, bug 1817126, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(hikezoe.birchill)

Note: If I set layout.scroll.disable-pixel-alignment to true, then I can't repro anymore.

Thank you, Daniel! This will be fixed by bug 1852884.

Depends on: 1852884
Flags: needinfo?(hikezoe.birchill)

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)

We are going to tackle bug 1852884 and relevant ones in this half.

Severity: -- → S3
Flags: needinfo?(hikezoe.birchill)
Priority: -- → P3
No longer blocks: 1850485
See Also: → 1850485
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: