Closed Bug 245635 Opened 20 years ago Closed 19 years ago

list-style-type: decimal produces all zeros when used in an XML document with display: list-item

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 4522

People

(Reporter: richy, Assigned: dbaron)

References

()

Details

Attachments

(5 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a1) Gecko/20040520
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a1) Gecko/20040520

I am attempting to create a numbered list with CSS in an XML document. My
apologes in advance if this bug has already been reported. In the reference URL
above, the list should be numbered, instead of all zeros. I get a numbered list
when ran in Opera and IE as I expect to (yes, do hold back the nausea induced by
that reference -- that's about all I get that I expect to in that browser).

The CSS in the document looks somthing like this:

    directions {
        display: block;
        font-size: 130%;
        padding: 5px;
        list-style-type: decimal;
    }
    direction {
        display: list-item;
        margin-left: 30px;
    }

I've tried a number of different approaches including counters, which I did see
a long-standing bug already filed for. That leaves me to assume a bug in Mozilla.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Looks a lot like like bug 4522 (marking dependent for now, since the list-item
parent is in fact display:block here...)
Depends on: 4522
Richard, could you attach the testcase to the bug (attach the CSS first, point
the XML at it, then attach the XML) using
http://bugzilla.mozilla.org/attachment.cgi?bugid=245635&action=enter ?

That way we can be sure the testcase won't disappear...
Actually, I guess attach the background image first, then point the CSS to that,
then attach the CSS, etc (the background image is causing a performance issue,
filed as bug 245899).
Should this bug also depend on bug 3247?
Not unless our list impl uses counters (which it currently does not).
Attached image Background image
Attached image Background image [2]
Attached file CSS Source File
Attached file XML Source File
You can actually create a self contained XML testcase where the style is
embedded in an XHTML style element, like here. This is a lot smaller testcase
than the original.
Status: UNCONFIRMED → NEW
Ever confirmed: true
The problem seems to be that FrameStartsCounterScope() returns false when called
on blocks that don't have a -moz-counter-reset setting (see
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/layout/html/document/src/html.css&rev=3.174&mark=311,319#304
for where we set it on HTML lists).  If FrameStartsCounterScope() returns false,
RenumberLists() bails out.
Assignee: hjtoi-bugzilla → dbaron
Component: XML → Style System (CSS)
QA Contact: ashshbhatt → ian

*** This bug has been marked as a duplicate of 4522 ***
Status: NEW → RESOLVED
Closed: 19 years ago
No longer depends on: 4522
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: