Closed Bug 436662 Opened 17 years ago Closed 17 years ago

"list-style-type: decimal" does not work correctly in some cases

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 4522

People

(Reporter: tiedie, Unassigned)

Details

User-Agent: Mozilla/5.0 Gecko/20070713 Firefox/2.0.0.0 Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5 Elements with css properties "display: list-item" and "list-style-type: decimal" are not enumerated, unless they are inside a html "ol" or "ul" element. The problem exists for the other enumerating values of "list-style-type" too, such as "lower-roman" etc. The problem occurrs with both html and xml documents. Reproducible: Always Steps to Reproduce: 1. Open a document containing the following: <html> <head> <style type="text/css"> p { display: list-item; list-style-type: decimal } </style> </head> <body> <div> <p>Item A</p> <p>Item B</p> </div> <ol> <p>Item C</p> <p>Item D</p> </ol> </body> </html> Actual Results: "Item A" and "Item B" are both numbered "0" Expected Results: "Item A" and "Item B" should be numbered "1" and "2", respectively.
Confirmed... known. ;-)
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.