Phenomenon
When using an IME (Input Method Editor) in Chrome on macOS, the candidate window (which shows possible character conversions) may appear in the wrong position relative to the caret. It may be offset or appear far from where the user is typing.
Reproduction example
- Create a contenteditable div.
- Switch to Japanese IME.
- Start typing Japanese characters.
- Observe the position of the IME candidate window relative to the caret.
Observed behavior
- In Chrome on macOS, the IME candidate window may appear in the wrong position.
- It may be offset from the caret location.
- The positioning may be incorrect when the contenteditable is scrolled or positioned.
Expected behavior
- The IME candidate window should appear near the caret position.
- It should follow the caret as the user types.
- Positioning should be accurate regardless of scroll or layout.