Make scroll-snap-type-on-root-element.html pass
Categories
(Core :: Layout: Scrolling and Overflow, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox113 | --- | fixed |
People
(Reporter: hiro, Assigned: hiro)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
I was misunderstanding that the test failure is caused by incorrect writing-mode propagation stuff. But I was wrong. In fact the test fails at two different places
assert_equals(document.scrollingElement.scrollLeft, 200, "block should not snap");
and
assert_equals(document.scrollingElement.scrollTop, 800, "block should not snap");
In the former case the scroll snap align on X axis is none
and the test tries to do scrollTo( 200, 800)
. We incorrectly snap to 0 on X axis due to this line, we choose the original start position if we didn't find any candidates on the axis. We need to snap to the specified 200px point if the given scroll operation is an intended end position operation (e.g. scrollTo).
The latter case fails due to the same reason.
Assignee | ||
Comment 1•2 years ago
|
||
Comment 4•2 years ago
•
|
||
Backed out changeset de233af59c21 (Bug 1822433) for wpt failures on scroll-snap-type-on-root-element.html.
Backout link
Push with failures <--> wpt7
Failure Log
Assignee | ||
Comment 5•2 years ago
|
||
Two tweaks here;
- Add a meta viewport tag
Without speciyingminimum-scale=1
the content gets shrink to fit to the
device screen so that it prevent from scrolling/snapping to the expected
position - Change the snap target element position
On our CIs our browser's content height is 1136px even with above 1), thus
the original snap target position on Y axis 1000px isn't suitable to be
snapped toscroll-snap-align: end
becasue it's originally inside the
scrollport
Assignee | ||
Comment 6•2 years ago
|
||
Looks like Chrome hasn't run any web platform tests on mobile environments and Webkit hasn't either.
Comment 9•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d1f59c7a2743
https://hg.mozilla.org/mozilla-central/rev/59d6c667ab66
Description
•