w3c / w3c/editing

Firefox: Up/Down arrow navigation doesn't work with absolutely positioned elements in contenteditable

Open
#523 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug-reports-filed caret-movement
Dominant language
HTML
Stars
202
Forks
43
PR merge metrics
No merged PRs in 30d

Description

Description:

In Firefox, when a contenteditable element contains absolutely positioned child elements,
arrow key navigation behaves inconsistently:

  • Left/Right arrow keys work correctly (follow DOM order)
  • Up/Down arrow keys fail to navigate to/from absolutely positioned elements

This works correctly in Chrome and Safari.

See Repro: https://w3c.github.io/editing/repros/523.html (pending PR #524 being merged)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproduction at https://w3c.github.io/editing/repros/523.html and verify the behavior in Firefox, Chrome, and Safari. Focus on Up/Down navigation involving absolutely positioned children inside contenteditable; done means those keys navigate to and from those elements consistently, while Left/Right behavior remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.