Case ce-0099-nested-list-enter-chrome · Scenario scenario-nested-list-behavior

Enter key in nested list creates item at same level in Chrome

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

Phenomenon

When pressing Enter in a nested list item in Chrome, a new list item is created at the same nesting level. This behavior is generally correct, but may differ from user expectations or other browsers.

Reproduction example

  1. Create a nested list: <ul><li>Item 1<ul><li>Nested item</li></ul></li></ul>
  2. Place cursor inside “Nested item”
  3. Press Enter

Observed behavior

  • A new list item is created at the same nesting level (inside the nested <ul>)
  • The list structure is maintained
  • If cursor is at the end, new item is created after
  • If cursor is in the middle, text is split

Expected behavior

  • New list item should be created at the same nesting level
  • List structure should be maintained
  • Behavior should be consistent across browsers

Browser Comparison

  • Chrome/Edge: Creates item at same level (this case)
  • Firefox: May create item or paragraph, behavior inconsistent
  • Safari: May create unexpected nesting levels

Notes and possible direction for workarounds

  • This behavior is generally acceptable
  • May need to handle edge cases where list structure breaks
  • Consider intercepting Enter to ensure consistent behavior
  • Normalize list structure after operations
Before
  • Item 1
    • Nested item
Nested list, cursor inside 'Nested item'
After Enter
  • Item 1
    • Nested item
Enter creates new item at same nesting level (normal behavior)
vs
✅ Expected
  • Item 1
    • Nested item
Expected: New item created at same nesting level (current behavior is correct)

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: 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.