Case ce-0097-list-item-deletion-chrome · Scenario scenario-list-item-deletion

Backspace at beginning of list item converts to paragraph in Chrome

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

Phenomenon

When pressing Backspace at the beginning of the first list item in Chrome, the list item is deleted and converted to a paragraph element. This behavior differs from Firefox and Safari, which may delete the entire list or create unexpected structures.

Reproduction example

  1. Create a list with at least one item: <ul><li>Item 1</li><li>Item 2</li></ul>
  2. Place cursor at the very beginning of “Item 1” (before the text)
  3. Press Backspace

Observed behavior

  • The first list item is removed from the list
  • The list item content is converted to a <p> paragraph element
  • The remaining list items stay in the list structure
  • If it was the only item, the list may be removed entirely

Expected behavior

  • The list item should be deleted and merged with previous content (if any)
  • Or the list item should be removed while maintaining list structure
  • Behavior should be consistent across browsers

Browser Comparison

  • Chrome/Edge: Converts list item to paragraph
  • Firefox: May delete entire list or create nested structures
  • Safari: May create empty list items or unexpected structures

Notes and possible direction for workarounds

  • Intercept beforeinput events with inputType: 'deleteContentBackward'
  • Check if cursor is at the beginning of a list item
  • Implement custom deletion logic that maintains expected behavior
  • Consider converting to paragraph only if there’s previous content to merge with
Before
  • Item 1
  • Item 2
List, cursor at start of first item
After Backspace (Bug)

Item 1

  • Item 2
Backspace removes first item from list and converts to paragraph
vs
✅ Expected
  • Item 2
Expected: Only first item deleted, list structure maintained

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-0097-list-item-deletion-chrome Windows 11 Desktop or Laptop Any Chrome 120.0 US draft
ce-0098-list-item-deletion-firefox Windows 11 Desktop or Laptop Any Firefox 120.0 US draft
ce-0151-list-item-empty-after-delete Windows 11 Desktop or Laptop Any Safari 17.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.