Closed Bug 2092988 Opened 15 days ago Closed 11 days ago

[wpt-sync] Sync PR 64565 - [scroll-snap] Don't treat unreachable snap areas as visible

Categories

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

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64565 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64565
Details from upstream follow.

David Liu <lcdavid@google.com> wrote:

[scroll-snap] Don't treat unreachable snap areas as visible

SnapSearchResult::visible_range() returns a valid range even when the
snap area is entirely outside the snapport. Use RangeF::Intersect()
instead to exclude snap areas outside the snapport. Add
RangeF::ClosedRange() to represent a closed [min, max] range, so that
areas touching the edge are still considered visible.

Add WPT snap-to-visible-areas-unreachable.html, covering a snap area in
negative overflow, a snap area clipped past the scrollable overflow, and
zero-width snap areas at the start and end edges.

Bug: 473576119
Change-Id: I06f5cae9389766958b6941223dc8bb3be20c9b09
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8575644
Reviewed-by: Colin Blundell \<blundell@chromium.org>
Commit-Queue: David Liu \<lcdavid@google.com>
Reviewed-by: Robert Flack \<flackr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1734096}

Component: web-platform-tests → Layout: Scrolling and Overflow
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 217 tests

Status Summary

Firefox

OK : 1[GitHub] 181[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 182[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 3[GitHub] 731[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 756[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 757[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
FAIL: 1[GitHub] 99[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 101[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 102[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 1
PASS: 2
FAIL: 2

Safari

OK : 1
PASS: 4

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 11 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.