Case ce-0143-nested-list-backspace · Scenario scenario-nested-list-behavior

Backspace at beginning of nested list item deletes nested list

OS: Windows 11 Device: Desktop or Laptop Any Browser: Firefox 120.0 Keyboard: US Status: draft
list nested backspace firefox

Phenomenon

When pressing Backspace at the beginning of a nested list item in Firefox, the entire nested list structure may be deleted instead of just unindenting the list item. This breaks the list structure.

Reproduction example

  1. Create a nested list: <ul><li>Item 1<ul><li>Nested item</li></ul></li></ul>
  2. Place cursor at the beginning of “Nested item”
  3. Press Backspace

Observed behavior

  • Entire nested list is deleted
  • Or nested structure is broken
  • List item is not just unindented
  • Structure becomes malformed

Expected behavior

  • List item should be unindented (moved to parent list)
  • Nested list structure should be preserved
  • Only the specific item should be affected
  • Structure should remain valid

Browser Comparison

  • Chrome/Edge: May unindent correctly or delete list
  • Firefox: More likely to delete nested list (this case)
  • Safari: Behavior most inconsistent

Notes and possible direction for workarounds

  • Intercept Backspace in nested list items
  • Implement custom unindent logic
  • Move list item to parent list
  • Preserve nested list structure
Before
  • Item 1
    • Nested item
Nested list, cursor at start of 'Nested item'
After Backspace (Bug)
  • Item 1
Backspace deletes entire nested list
vs
✅ Expected
  • Item 1
  • Nested item
Expected: Only nested item moves to parent level (indentation removed)

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-0099-nested-list-enter-chrome Windows 11 Desktop or Laptop Any Chrome 120.0 US draft
ce-0134-nested-list-tab-indent Windows 11 Desktop or Laptop Any Chrome 120.0 US draft
ce-0143-nested-list-backspace Windows 11 Desktop or Laptop Any Firefox 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: Firefox 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.