์ผ€์ด์Šค ce-0016 ยท ์‹œ๋‚˜๋ฆฌ์˜ค scenario-undo-redo-behavior

Undo and redo behavior is inconsistent across browsers

OS: Windows 11 ๊ธฐ๊ธฐ: Desktop or Laptop Any ๋ธŒ๋ผ์šฐ์ €: Edge 120.0 ํ‚ค๋ณด๋“œ: US ์ดˆ์•ˆ
undoredobrowser-compatibility

์ด ํŽ˜์ด์ง€๋Š” ์•„์ง ๋ฒˆ์—ญ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค

ํ˜„์žฌ ์˜์–ด ์›๋ฌธ์„ ํ‘œ์‹œํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฒˆ์—ญ์— ๊ธฐ์—ฌํ•ด ์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

Phenomenon

The undo and redo functionality (Ctrl+Z / Ctrl+Y or Cmd+Z / Cmd+Shift+Z) behaves differently across browsers. Some browsers undo individual keystrokes, while others undo larger operations. The undo stack may also be cleared unexpectedly.

Reproduction example

  1. Create a contenteditable div.
  2. Type several words.
  3. Apply formatting (bold, italic).
  4. Type more text.
  5. Press Undo (Ctrl+Z or Cmd+Z) multiple times.
  6. Observe what gets undone at each step.

Observed behavior

  • In Edge on Windows, undo may revert entire formatting operations rather than individual keystrokes.
  • The undo stack may be cleared when focus moves away from the contenteditable.
  • Redo behavior may not work consistently after certain operations.

Expected behavior

  • Undo should revert changes in a predictable order (typically most recent first).
  • The undo stack should persist while the contenteditable remains in focus.
  • Redo should restore undone changes in reverse order.

์ด ์‹œ๋‚˜๋ฆฌ์˜ค์˜ ๋ณ€ํ˜•

์ผ€์ด์Šค OS ๋ธŒ๋ผ์šฐ์ € ์ƒํƒœ
ce-0016 Windows 11 Edge 120.0 ์ดˆ์•ˆ
ce-0037 macOS Ubuntu 22.04 Safari 120.0 ์ดˆ์•ˆ

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: Windows 11
Device: Desktop or Laptop Any
Browser: Edge 120.0
Keyboard: US
Your environment

Use this editable area to reproduce the described case.

Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.