[wpt-sync] Sync PR 65017 - Fix visual overflow and hit-testing for block-fragmented boxes
Categories
(Core :: Layout, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 65017 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/65017
Details from upstream follow.
Kent Tamura <tkent@chromium.org> wrote:
Fix visual overflow and hit-testing for block-fragmented boxes
Hit-testing a fragmented box previously checked intersection against
LayoutBox's stitched VisualOverflowRect() using each fragment's physical
offset. Because stitched coordinates do not match fragment-local
coordinates, overflow at negative offsets relative to a later fragment
can fall inside positive stitched coordinates and be missed by
hit-testing and occlusion checks. Check each fragment's own
InkOverflowRect() and LocalRect() in PhysicalBoxFragment::MayIntersect()
instead.Also, LayoutBox::CopyVisualOverflowFromFragmentsWithoutInvalidations()
lacked flipped-blocks conversion, shifting negative-X overflow of later
fragments inside the stitched border box in vertical-rl and sideways-rl.
Align it with LayoutBox::ComputeScrollableOverflowFromFragments().Fixed: 581341594
Change-Id: I05d5c0ae7394e7a97f7d07d7623bc8896eb8d03f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8776614
Commit-Queue: Kent Tamura \<tkent@chromium.org>
Reviewed-by: Morten Stenshorne \<mstensho@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1742314}
| Assignee | ||
Updated•11 days ago
|
| Assignee | ||
Comment 1•11 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=122920
| Assignee | ||
Comment 2•11 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 3 subtests
Status Summary
Firefox
OK : 2
PASS: 5
FAIL: 2
Chrome
OK : 2
PASS: 1
FAIL: 6
Safari
OK : 2
PASS: 1
FAIL: 6
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /intersection-observer/v2/fragmented-occluder.html [wpt.fyi]
- First rAF.:
FAIL(Chrome:FAIL, Safari:FAIL) - Remove box-shadow from occluders.:
FAIL(Chrome:FAIL, Safari:FAIL)
- First rAF.:
Comment 4•9 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/acd0669b56ee
https://hg.mozilla.org/mozilla-central/rev/6d112377efe5
Description
•