Phenomenon
When applying italic formatting to selected text and then continuing to type, the italic formatting is not maintained for the newly typed characters in Edge on Windows.
Reproduction example
- Create a contenteditable div.
- Type some text.
- Select the text and apply italic formatting (Ctrl+I or through execCommand).
- Place the caret at the end of the italic text.
- Continue typing.
Observed behavior
- In Edge on Windows, newly typed characters after the italic text are not italic.
- 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.