Open Bug 1948548 Opened 1 month ago Updated 20 days ago

SharePoint numbered list nest incorrectly

Categories

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

Firefox 135
defect

Tracking

()

People

(Reporter: mclean, Unassigned)

References

Details

Attachments

(4 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:135.0) Gecko/20100101 Firefox/135.0

Steps to reproduce:

On a SharePoint page in a text web part, add a numbered list with a second numbered list as one of the original list's items.

Actual results:

The enumeration labels increment without respecting the nesting. A minimal example displays like this:

  1. item 1
    b. should be item 1a
  2. should be item 2

Expected results:

Nested lists should restart numbering and not advance numbering of the lists enclosing them.
I have found that the HTML that SharePoint generates is as expected. The problem must be in the CSS.

Looks like this was fixed in the past
https://bugzilla.mozilla.org/show_bug.cgi?id=1745506

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

My minimal example came out incorrectly, as the bugzilla editor reinterpreted what I typed as an ordered list. Due to this bug, the third line would display in SharePoint as "3. should be item 2". The screenshot correctly illustrates this.

I should have mentioned that such lists display correctly in other browsers (Safari, Chrome, Edge), and display incorrectly in Firefox under both macOS and WIndows 11.

https://bugzilla.mozilla.org/show_bug.cgi?id=1745506 has significant differences. 1745506 applied to non-nested lists, while the current bug applies only to nested lists. 1745506 involved "Completely wrong numbers with more then 3 digits", while the current one does not. The two bugs do share the similarity of failing to initialize a counter. However, this current bug appears to result from a failure to have multiple counters (for the different nesting levels), which is inapplicable to 1745506.

Hi, thanks for reporting - I don't have access to SharePoint here, unfortunately. Is it possible for you to attach a test case?
Saving the webpage as "Web Page (Complete)" would be good, after removing any sensitive information.

Flags: needinfo?(mclean)

The uploaded HTML and zipped folder are the same page that generated the screenshot.

Attached file Reduced Testcase

Thank you! Reduced testcase from it attached.

Assignee: nobody → dshin
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: dshin → nobody
Severity: -- → S3
See Also: → 1718683
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: