Closed Bug 1663982 Opened 4 years ago Closed 4 years ago

Lists within ordered lists break numbering

Categories

(Core :: Layout: Generated Content, Lists, and Counters, defect)

80 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1548753

People

(Reporter: mario.liebisch, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36

Steps to reproduce:

Firefox will render ordered lists with the wrong numbering, if you try to embed another ordered or unordered list as a direct child:

  • Create an ordered list with a few elements.
  • Embed an ordered or unordered list as a direct child of the ordered list between list items (see attached example).
  • Observe the resulting numbering in the browser.

Actual results:

Firefox will trip and break the continuous numbering of the list entries within the parent ordered list. Both Chrome and Edge continue properly.

  • The ordered list item following a direct child list will be off by 1.
  • If the ordered list item follows an empty child list, numbering will be reset to 1.

Expected results:

Numbering of the ordered list should only be affected by list items (<li>) that are direct children of the parent element. Numbering should be consistent between list items, no matter other content.

Forgot to add: Actual example found in the wild. The numbering issue starts at caption 3/4.

Component: Untriaged → Layout: Generated Content, Lists, and Counters
Product: Firefox → Core

This is invalid markup but anyhow this is fixed already on trunk, see bug 1548753 for the details.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: