IME candidate window appears in wrong position
OS: macOS Ubuntu 22.04 · Device: Desktop or Laptop Any · Browser: Chrome 120.0 · Keyboard: Japanese IME
Open case →Scenario
The IME candidate list is anchored to the caret rect; viewport scroll, zoom, CSS transforms, and fixed containers can offset it from the user's expectation.
The IME candidate list is anchored to the caret rect; viewport scroll, zoom, CSS transforms, and fixed containers can offset it from the user’s expectation.
Visual view of how this scenario connects to its concrete cases and environments. Nodes can be dragged and clicked.
Each row is a concrete case for this scenario, with a dedicated document and playground.
| Case | OS | Device | Browser | Keyboard | Status |
|---|---|---|---|---|---|
| ce-0049-ime-candidate-window-position | macOS Ubuntu 22.04 | Desktop or Laptop Any | Chrome 120.0 | Japanese IME | draft |
Open a case to see the detailed description and its dedicated playground.
OS: macOS Ubuntu 22.04 · Device: Desktop or Laptop Any · Browser: Chrome 120.0 · Keyboard: Japanese IME
Open case →Other scenarios that share similar tags or category.
Japanese kanji conversion and Chinese character selection depend on the IME candidate window. Delays, wrong ordering, or Safari-specific lag can cause users to commit the wrong character or see candidates that do not match the underlying buffer—especially under load or in complex layouts.
Many IMEs let users pick candidates with number keys 1–9. In contenteditable, those keys may be consumed by the IME, intercepted by the page for shortcuts, or mis-handled by Safari—causing wrong selection or cancelled composition.
Firefox shows different candidate window behavior or conversion latency than Chrome for some Japanese IME backends—handlers tuned on Chromium may mis-handle conversion commits.
During IME composition or in certain browser/IME combinations, the beforeinput event may have a different inputType than the corresponding input event. For example, beforeinput may fire with insertCompositionText while input fires with deleteContentBackward. This mismatch can cause handlers to misinterpret the actual DOM change and requires storing beforeinput's targetRanges for use in input event handling.
The selection (window.getSelection()) in beforeinput events can differ from the selection in corresponding input events. This mismatch can occur during IME composition, text prediction, or when typing adjacent to formatted elements like links. The selection in beforeinput may include adjacent formatted text, while input selection reflects the final cursor position.
Have questions, suggestions, or want to share your experience? Join the discussion below.