Closed Bug 2075160 Opened 2 months ago Closed 23 days ago

Unexpected cursor motion behavior when moving into element with an overflow style

Categories

(Core :: DOM: Selection, defect)

defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: marijnh, Assigned: ltenenbaum)

Details

Attachments

(1 file, 1 external file)

Attached file Reproduction —

In an editable element, pressing ArrowDown to move into a block of content that is wrapped in an element with an overflow style set to auto or scroll will skip the entire content of the element and move right to the end.

This comes up when an editor wants to make some potentially wide content, such as a preformatted block or a table, vertically scrollable when necessary with an overflow-x: auto style. Users trying to vertically cursor into the content will move right across it, which is not what they expect.

Neither Chrome nor Safari behaves this way.

The Bugbug bot thinks this bug should belong to the 'Core::Panning and Zooming' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Panning and Zooming
Product: Firefox → Core

The severity field is not set for this bug.
:botond, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(botond)

(Moving to DOM: Selection since this is a bug about caret movement in contenteditable.)

Component: Panning and Zooming → DOM: Selection
Flags: needinfo?(botond)

The severity field is not set for this bug.
:farre, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(afarre)

Hi Leo, care to investigate this? Thanks.

Severity: -- → S3
Flags: needinfo?(afarre) → needinfo?(ltenenbaum)
Assignee: nobody → ltenenbaum
Status: NEW → ASSIGNED
Flags: needinfo?(ltenenbaum)
Pushed by ltenenbaum@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/febf06dbbcbc https://hg.mozilla.org/integration/autoland/rev/398ccce3a2d8 Go to top of overflow:scroll for downwards caret navigation. r=emilio,layout-reviewers

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/65119 for changes under testing/web-platform/tests

Status: ASSIGNED → RESOLVED
Closed: 23 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch

Upstream PR merged by moz-wptsync-bot

QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: