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)
Tracking
()
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.
Comment 1•20 years ago
|
||
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
Comment 2•20 years ago
|
||
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...
Comment 3•20 years ago
|
||
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).
Comment 5•20 years ago
|
||
Not unless our list impl uses counters (which it currently does not).
Reporter | ||
Comment 6•20 years ago
|
||
Reporter | ||
Comment 7•20 years ago
|
||
Reporter | ||
Comment 8•20 years ago
|
||
Reporter | ||
Comment 9•20 years ago
|
||
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.
Updated•20 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 11•20 years ago
|
||
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.
Updated•19 years ago
|
Assignee: hjtoi-bugzilla → dbaron
Component: XML → Style System (CSS)
QA Contact: ashshbhatt → ian
Assignee | ||
Comment 12•19 years ago
|
||
*** This bug has been marked as a duplicate of 4522 ***
You need to log in
before you can comment on or make changes to this bug.
Description
•