[w3c/editing] Caret movement based on visual screen position rather than DOM order? (Issue #533)

michael created an issue (w3c/editing#533)

This is just a rough idea I wanted to bring to discussion.

Assuming this DOM structure:

```html
<div contenteditable="true" style="position: relative; width: 500px; height: 500px;">
  <div style="position: absolute; right: 0; top: 0;">text in top right corner</div>
  <div style="position: absolute; left: 0; top: 0;">text in top left corner</div>
</div>
```

And the cursor being after the last character of "text in top left corner". Now assume the user presses `ArrowRight`.

Current behavior: The cursor doesn't move anywhere as it's in the last available text position, according to DOM order.

New behavior: The cursor moves right before the "text in top right corner"

Concerns:
- RTL editing conflicts with this? Why?
- [Please add more concerns]

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/533
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/editing/issues/533@github.com>

Received on Thursday, 9 April 2026 13:58:25 UTC