Caso ce-0091 · Escenario scenario-css-transform

CSS transform may cause selection handles to appear in wrong position

SO: Windows 11 Dispositivo: Desktop or Laptop Any Navegador: Edge 120.0 Teclado: US Borrador
css-transformselectionedgewindows

Esta página aún no ha sido traducida

Actualmente se muestra el contenido original en inglés. Agradecemos su contribución a la traducción.

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.