Re-snapping to points on overflowing snap-area doesn't re-renap to the original position
Categories
(Core :: Layout: Scrolling and Overflow, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: hiro, Assigned: hiro)
References
(Blocks 1 open bug)
Details
(Keywords: webcompat:platform-bug)
Attachments
(1 file)
When we aggregate candidate snap point on an overflowing snap area, we use the overflowing element as the snap target id. Thus when we try to re-snap, we use the snap target id element's scroll-snap-align point in preference to the snap point on an overflowing snap area.
For snap points on overflowing snap area we might want to use the position itself rather than the id (= corresponding to an element), but it's still unclear since https://github.com/w3c/csswg-drafts/issues/7438 .
So for now it would be reasonable no to set the id, just to re-evaluate snap candidates without any id.
| Assignee | ||
Comment 1•9 months ago
|
||
In Gecko scroll snap id is a raw pointer of each snap target element. So
if the snap target element is larger than the snapport and once after
we snapped to a point inside element but the point is away from the
element's scroll-snap-align point, the snap id forces us to snap to
the element's scroll-snap-align point when we try to re-snap.
Comment 4•9 months ago
|
||
| bugherder | ||
Updated•8 months ago
|
Description
•