Closed Bug 2095231 Opened 11 days ago Closed 9 days ago

[wpt-sync] Sync PR 65017 - Fix visual overflow and hit-testing for block-fragmented boxes

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
163 Branch
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}

Component: web-platform-tests → Layout
Product: Testing → Core

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

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