Closed Bug 1646655 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 24231 - [FragmentItem] Fix hit-testing floats in legacy root

Categories

(Core :: DOM: CSS Object Model, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Koji Ishii <kojii@chromium.org> wrote:

[FragmentItem] Fix hit-testing floats in legacy root

This patch fixes hit-testing floating objects in a legacy
root.

With |NGPaintFragment|, floats are in children, and that
regular traversal can cover this case.

With |FragmentItem|, floats are either in |NGFragmentItems|
if it has an inline formatting context, or in children
otherwise. This difference requires additional branch to the
legacy fallback when hit-testing floating objects.

Bug: 1096259
Change-Id: I8565eb663781318233c21482270804cf254e0aec

Reviewed-on: https://chromium-review.googlesource.com/2249249
WPT-Export-Revision: fdc02f3f069bb56f39d8324afec632876fa99dd5

Component: web-platform-tests → DOM: CSS Object Model
Product: Testing → Core

CI Results

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

Total 1 tests and 2 subtests

Status Summary

Firefox

OK : 1
PASS: 2

Chrome

OK : 1
PASS: 2

Safari

OK : 1
PASS: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8599abc6d805
[wpt PR 24231] - [FragmentItem] Fix hit-testing floats in legacy root, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.