Closed Bug 1636948 Opened 5 years ago Closed 5 years ago

Error rendering nested <ol>/<il> tags in HTML

Categories

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

76 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1548753

People

(Reporter: gamgster, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0

Steps to reproduce:

This HTML code has a bad rendering.

<!DOCTYPE html><html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
x<br>
    x<br>
<ol>
<li>x</li>
<ol>
<li>x</li>
<li>x</li>
<ol>
<li>x</li>
<li>x</li>
</ol>
<li>x</li>
<ol>
<li>x</li>
<ol>
<li>x</li>
</ol>
<li>x</li>
<li>x</li>
<li>x</li>
<li>x</li>
<li>x</li>
</ol>
<li>x</li>
<ol>
<li>x</li>
</ol>
</ol>
<li>x</li>
<ol>
<li>x</li>
</ol>
<li>x</li>
<ol>
<li>x</li>
</ol>
</ol>
</body>
</html>

Actual results:

This is how Firefox/Thunderbird rendered it.

x
x

1. x
    1. x
    2. x
        1. x
        2. x
    3. x
        1. x
            1. x
        2. x
        3. x
        4. x
        5. x
        6. x
    2. x
        1. x
3. x
    1. x
2. x
    1. x

Expected results:

This is the expected result (as it was in Chrome and Edge)

x
x

1. x
    1. x
    2. x
        1. x
        2. x
    3. x
        1. x
            1. x
        2. x
        3. x
        4. x
        5. x
        6. x
    2. x
        1. x
2. x
    1. x
3. x
    1. x

Thunderbird 68.8.0 (64-bit)

Emilio, I doubt this needs to stay sec-sensitive, but can you take a casual look just in case?

Group: firefox-core-security → layout-core-security
Component: Untriaged → Layout: Generated Content, Lists, and Counters
Flags: needinfo?(emilio)
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(emilio)
Resolution: --- → DUPLICATE
Group: layout-core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: