Case ce-0163-list-formatting-across-items · Scenario scenario-list-formatting-persistence

Applying formatting across multiple list items breaks list structure

OS: Windows 11 Device: Desktop or Laptop Any Browser: Chrome 120.0 Keyboard: US Status: draft
list formatting multi-select chrome

Phenomenon

When selecting text across multiple list items and applying formatting in Chrome, the list structure may break. List items may be converted to paragraphs or the list may be removed entirely.

Reproduction example

  1. Create a list: <ul><li>Item 1</li><li>Item 2</li><li>Item 3</li></ul>
  2. Select text across “Item 1” and “Item 2”
  3. Apply bold formatting

Observed behavior

  • List items may be converted to paragraphs
  • List structure is broken
  • Formatting is applied but list is lost
  • DOM structure becomes: <p><b>Item 1</b></p><p><b>Item 2</b></p>

Expected behavior

  • List structure should be maintained
  • Formatting should be applied within list items
  • List items should remain as <li> elements
  • Structure should not break

Browser Comparison

  • Chrome/Edge: May break structure (this case)
  • Firefox: More likely to break structure
  • Safari: Most likely to break structure

Notes and possible direction for workarounds

  • Intercept formatting across list items
  • Apply formatting within each list item separately
  • Preserve list structure
  • Normalize structure after formatting
Before
  • Item 1
  • Item 2
  • Item 3
List structure, text selected from Item 1 and Item 2
After Bold (Bug)

Item 1

Item 2

After formatting applied, list structure damaged, &lt;li&gt; converted to &lt;p&gt;
vs
✅ Expected
  • Item 1
  • Item 2
  • Item 3
Expected: List structure maintained, formatting applied inside each item

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-0116-list-formatting-lost-paste Windows 11 Desktop or Laptop Any Chrome 120.0 US draft
ce-0124-list-formatting-bold-lost Windows 11 Desktop or Laptop Any Firefox 120.0 US draft
ce-0163-list-formatting-across-items 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.