Closed Bug 1816338 Opened 3 years ago Closed 3 years ago

Investigate the reason why scroll-target-snap-002.html fails

Categories

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

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: hiro, Assigned: hiro)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 external file)

Though the test fails on all browsers, we should know the reason.

I believe the failure is a correct behavior, I mean the test itself has a mistake.

There's a similar test, scroll-target-snap-003.html, a main difference between the failed test and this test is that this test uses Element.focus() rather than Element.scrollIntoView. So both tests should behave in the same manner in terms of scrolling. But there's another difference which, I believe, makes scroll-target-snap-002.html fails. The difference is the target element position. You can see the difference in the file I am attaching.

With the change, the DOM tree structures match scroll-target-snap-003.html
which passes on all browsers.

Assignee: nobody → hikezoe.birchill
Status: NEW → ASSIGNED
Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0a5bd0d08ed2 Move scrollIntoView's target element above a ".foildn" element. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/38476 for changes under testing/web-platform/tests

Backed out changeset 0a5bd0d08ed2 (Bug 1816338) for wr failures on scroll-target-snap-002.html.
Backout link
Push with failures Wr3
Failure Log

Flags: needinfo?(hikezoe.birchill)

I forgot re-adding the ini file (when I pushed a try run I removed it to see unexpected-pass on the try run).

Flags: needinfo?(hikezoe.birchill)
Backout by mlaza@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1c9f9c654b5a Backed out changeset 0a5bd0d08ed2 for wr failures on scroll-target-snap-002.html.
Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e74d14d3a7df Move scrollIntoView's target element above a ".foildn" element. r=emilio
Upstream PR was closed without merging
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: