Closed
Bug 70191
Opened 25 years ago
Closed 25 years ago
The counter capabilities of CSS2 doe not seem to be supported.
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: joden, Assigned: pierre)
Details
By using the using the *:before references defined in CSS2 you can create
counters to be used in lists. This is not important when coding in HTML, but
it is of utmost importance when using XML. Mozilla does nothing with these
counters.
For instance here is a snippet of a style sheet I was using to cause my lists
and procedures to be enumerated:
listitem, step {
display: inline;
margin-left: 10%;
margin-right: 10%;
margin-bottom: .25em;
}
listitem:before {
display: inline;
content: counter(item) ". ";
counter-increment: item;
counter-reset: itemizedlist;
}
step:before {
display: inline;
content: "step " counter(step) ") ";
counter-increment: step;
counter-reset: procedure;
}
When reading the document that uses this style sheet, though my list items
are offset, they are not enumerated (I don't even get the magical 1. after each
listitem or step). If on the other hand I read the same document into
Opera it does enumerate the lists (though I am having other problems; hopefully
of my own creation).
Forgive me if this is a duplicate bug report. I searched through the Release Notes and Bugzilla for any bugs that had to do with lists, and could find none.
Comment 1•25 years ago
|
||
This is one of the many CSS2 features not yet implemented in Mozilla (which is
attempting to be fully compliant with CSS1 for now). Unfortunately, this will
probably not be implemented for a bit, as the focus right now is on getting the
features we _do_ implement right.
Duplicate of "counters in generated content [GC]"
note: counters can be used for lists, but there is nothing tying counters to
lists. You could just as easily use counters to number <h*> elements (for
example, sections/subsections of a paper).
*** This bug has been marked as a duplicate of 3247 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•