[wpt-sync] Sync PR 41426 - Add tolerance to snapport covered computation
Categories
(Core :: Layout: Scrolling and Overflow, task, P4)
Tracking
()
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_6F5o6E6WiEc7ZM7g9oPgdMBug: 1468412
Change-Id: If8d6c6f4f45ecf0b02bccb8ca731b0407cb77743
Reviewed-on: https://chromium-review.googlesource.com/4774422
WPT-Export-Revision: da5f5eeacb34813cd620f7ad83960b8a3e3db77e
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Comment 3•1 year ago
|
||
Comment 4•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/149982e15470
https://hg.mozilla.org/mozilla-central/rev/9ce4ca427e7f
Description
•