Fall ce-0031 · Szenario scenario-formatting-persistence

Underline formatting is lost when typing after applying underline

OS: Linux Ubuntu 22.04 Gerät: Desktop or Laptop Any Browser: Firefox 120.0 Tastatur: US Entwurf
formattingunderlinefirefox

Diese Seite wurde noch nicht übersetzt

Derzeit wird der englische Originalinhalt angezeigt. Wir freuen uns über Ihre Hilfe bei der Übersetzung.

Phenomenon

When applying underline formatting to selected text and then continuing to type, the underline formatting is not maintained for the newly typed characters in Firefox on Linux.

Reproduction example

  1. Create a contenteditable div.
  2. Type some text.
  3. Select the text and apply underline formatting (Ctrl+U or through execCommand).
  4. Place the caret at the end of the underlined text.
  5. Continue typing.

Observed behavior

  • In Firefox on Linux, newly typed characters after the underlined text are not underlined.
  • The formatting state appears to be lost when the caret moves.

Expected behavior

  • Newly typed characters should inherit the formatting of the preceding text when the caret is within or immediately after formatted text.

Varianten dieses Szenarios

Fall OS Browser Status
ce-0011 macOS 14.0 Safari 17.0 Entwurf
ce-0021 Windows 11 Chrome 120.0 Entwurf
ce-0029 Windows 11 Edge 120.0 Entwurf
ce-0031 Linux Ubuntu 22.04 Firefox 120.0 Entwurf

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: Linux Ubuntu 22.04
Device: Desktop or Laptop Any
Browser: Firefox 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.