Closed Bug 1623174 Opened 4 years ago Closed 4 years ago

Left arrow key unexpectedly skips a line when <br> exists between blocks

Categories

(Core :: DOM: Editor, defect, P3)

76 Branch
x86_64
Windows 10
defect

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox-esr68 --- wontfix
firefox74 --- wontfix
firefox75 --- wontfix
firefox76 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

https://codepen.io/SaschaNaz/pen/OJVZKZQ

  1. Put two <div>s and one <br> between them, all in a contenteditable block.
  2. Put the cursor at the end of the last line
  3. Tap left arrow key

Expected: The cursor should move to the previous (second) line
Actual: It unexpectedly skips the second line and moves to the end of the first line

No longer depends on: 1623058
Assignee: nobody → saschanaz
Status: NEW → ASSIGNED
Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c4f7220dead3
Do not skip BR followed by a block r=masayuki,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/22340 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: