μΌ€μ΄μŠ€ ce-0021 Β· μ‹œλ‚˜λ¦¬μ˜€ scenario-formatting-persistence

Bold formatting is lost when typing after applying bold

OS: Windows 11 κΈ°κΈ°: Desktop or Laptop Any λΈŒλΌμš°μ €: Chrome 120.0 ν‚€λ³΄λ“œ: US μ΄ˆμ•ˆ
formattingboldchrome

이 νŽ˜μ΄μ§€λŠ” 아직 λ²ˆμ—­λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€

ν˜„μž¬ μ˜μ–΄ 원문을 ν‘œμ‹œν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. λ²ˆμ—­μ— κΈ°μ—¬ν•΄ μ£Όμ‹œλ©΄ κ°μ‚¬ν•˜κ² μŠ΅λ‹ˆλ‹€.

Phenomenon

When applying bold formatting to selected text and then continuing to type, the bold formatting is not maintained for the newly typed characters in Chrome on Windows.

Reproduction example

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

Observed behavior

  • In Chrome on Windows, newly typed characters after the bold text are not bold.
  • 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.

이 μ‹œλ‚˜λ¦¬μ˜€μ˜ λ³€ν˜•

μΌ€μ΄μŠ€ OS λΈŒλΌμš°μ € μƒνƒœ
ce-0011 macOS 14.0 Safari 17.0 μ΄ˆμ•ˆ
ce-0021 Windows 11 Chrome 120.0 μ΄ˆμ•ˆ
ce-0029 Windows 11 Edge 120.0 μ΄ˆμ•ˆ
ce-0031 Linux Ubuntu 22.04 Firefox 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: Chrome 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.