ケース ce-0091 · シナリオ scenario-css-transform

CSS transform may cause selection handles to appear in wrong position

OS: Windows 11 デバイス: Desktop or Laptop Any ブラウザ: Edge 120.0 キーボード: US 下書き
css-transformselectionedgewindows

このページはまだ翻訳されていません

現在、英語の原文を表示しています。翻訳への貢献をお待ちしております。

Phenomenon

When a contenteditable element has CSS transforms applied (translate, scale, rotate), the selection handles and caret may appear in incorrect positions. The visual position may not match the actual selection position.

Reproduction example

  1. Create a contenteditable div with transform: scale(0.8) translateX(50px).
  2. Select text in the contenteditable.
  3. Observe the position of selection handles.
  4. Observe the caret position during editing.
  5. Compare visual position with actual selection.

Observed behavior

  • In Edge on Windows, CSS transforms may cause selection handle misalignment.
  • Caret position may appear offset.
  • Selection handles may not align with selected text.
  • Touch selection on mobile may be affected.

Expected behavior

  • CSS transforms should not affect selection handle positioning.
  • Caret should appear in the correct visual position.
  • Selection handles should align with selected text.

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: Edge 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.