Cas ce-0090 · Scénario scenario-css-isolation

CSS isolation property may affect contenteditable stacking context

OS: macOS 14.0 Appareil: Desktop or Laptop MacBook Pro Navigateur: Safari 17.0 Clavier: US Brouillon
css-isolationstacking-contextsafarimacos

Cette page n'a pas encore été traduite

Le contenu original en anglais est actuellement affiché. Nous apprécierions votre contribution à la traduction.

Phenomenon

When a contenteditable element has the CSS isolation: isolate property, it creates a new stacking context. This may affect how selection handles and IME candidate windows are positioned relative to the contenteditable.

Reproduction example

  1. Create a contenteditable div with isolation: isolate.
  2. Use an IME to compose text.
  3. Observe the position of the IME candidate window.
  4. Try to select text and observe selection handles.
  5. Compare with a contenteditable without isolation.

Observed behavior

  • In Safari on macOS, isolation may affect IME candidate window positioning.
  • Selection handles may be positioned incorrectly.
  • Z-index stacking may be affected.
  • Overlays may not appear correctly.

Expected behavior

  • CSS isolation should not affect contenteditable UI elements.
  • IME candidate windows should be positioned correctly.
  • Selection handles should appear in the right place.

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: macOS 14.0
Device: Desktop or Laptop MacBook Pro
Browser: Safari 17.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.