Closed Bug 1848372 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 41426 - Add tolerance to snapport covered computation

Categories

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

task

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

David Awogbemila <awogbemila@chromium.org> wrote:

Add tolerance to snapport covered computation

The layout code stores the compositor scroll nodes' bounds are ints
(gfx::Size) which may be rounded up or down. Rounded up values create an
issue because the snap code (which stores the snap area rects as floats)
might fail to recognize that a snap area covers the snap port due to the
round up.

This patch addresses this issue by allowing a 0.5 tolerance in the snap
code to account for possible rounding differences.

More details at [1]
[1] https://docs.google.com/document/d/126FGFTDkoOXSlYw6fQip_6F5o6E6WiEc7ZM7g9oPgdM

Bug: 1468412
Change-Id: If8d6c6f4f45ecf0b02bccb8ca731b0407cb77743
Reviewed-on: https://chromium-review.googlesource.com/4774422
WPT-Export-Revision: da5f5eeacb34813cd620f7ad83960b8a3e3db77e

Component: web-platform-tests → Layout: Scrolling and Overflow
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/149982e15470 [wpt PR 41426] - Add tolerance to IsSnapportCovered computation, a=testonly https://hg.mozilla.org/integration/autoland/rev/9ce4ca427e7f [wpt PR 41426] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.