Case ce-0165-image-selection-deletion · Scenario scenario-image-deletion

Selecting and deleting image requires multiple operations

OS: Windows 11 Device: Desktop or Laptop Any Browser: Chrome 120.0 Keyboard: US Status: draft
image deletion selection chrome

Phenomenon

When selecting an image in a contenteditable element in Chrome, deleting it may require multiple Delete or Backspace key presses. The image may not be deleted on the first attempt.

Reproduction example

  1. Insert an image into contenteditable
  2. Click to select the image
  3. Press Delete or Backspace once

Observed behavior

  • Image may not be deleted on first key press
  • Multiple key presses may be needed
  • Or image selection may be lost before deletion
  • Deletion is unreliable

Expected behavior

  • Image should be deleted on first key press
  • Deletion should be immediate and reliable
  • Selection should be maintained until deletion
  • Behavior should be consistent

Browser Comparison

  • Chrome/Edge: May require multiple presses (this case)
  • Firefox: Similar deletion issues
  • Safari: Deletion behavior most inconsistent

Notes and possible direction for workarounds

  • Intercept Delete/Backspace on selected images
  • Ensure image is deleted immediately
  • Handle image selection explicitly
  • Provide reliable deletion behavior
Before
Image
Image in selected state
After First Delete (Bug)
Image
First Delete key press does not delete image
vs
✅ Expected
Expected: Immediately deleted on first Delete key press

Browser compatibility matrix

This matrix shows which browser and OS combinations have documented cases for this scenario. The current case is highlighted. Click on a cell to view other cases.

Current case
Confirmed
Draft
No case documented

All variants (detailed table)

Complete list of all cases for this scenario with full environment details.

Case OS Device Browser Keyboard Status
ce-0118-image-deletion-leaves-empty Windows 11 Desktop or Laptop Any Chrome 120.0 US draft
ce-0125-image-deletion-cursor-position Windows 11 Desktop or Laptop Any Firefox 120.0 US draft
ce-0165-image-selection-deletion Windows 11 Desktop or Laptop Any Chrome 120.0 US draft

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: Chrome 120.0
Keyboard: US
Your environment
Sample HTML:
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.

Comments & Discussion

Have questions, suggestions, or want to share your experience? Join the discussion below.