Closed Bug 1553485 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 16950 - Keep scroll by keyboard after child focused node is removed

Categories

(Core :: DOM: Core & HTML, defect, P4)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Jihwan Marc Kim <bluewhale.marc@gmail.com> wrote:

Keep scroll by keyboard after child focused node is removed

So far, scroll stops if focused child node is removed
while scrolling parent node.
This is because the event handler passes the |MousePressNode|.
If focused child node(|MousePressNode|) is removed,
it will be null and scrollable area changed to document.

|LogicalScroll| finds scrollable area from |MousePressNode|.
If we save this scrollable area node,
we can get one more chance to find proper node to scroll.

Bug: 493078
Change-Id: I6e81ca0a0d15e0def66c8457840ca9e1343e8dba

Reviewed-on: https://chromium-review.googlesource.com/1611620
WPT-Export-Revision: c91dbb486821727b1e40c6251f9725737a4d8e26

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.