Closed Bug 6011 Opened 25 years ago Closed 25 years ago

Lists rendered incorrectly when CSS properties are attached

Categories

(Core :: CSS Parsing and Computation, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: kkto, Assigned: peterl-retired)

Details

With the M5 release of Mozilla on Linux (running on a Pentium), I found that long list items are rendered incorrectly, if CSS properties are changed on the corresponding UL or OL tags. Here are the symptoms: the margins are much more than when CSS properties are not changed, the first line "hang over" the left margin, and text justification is not done. Here is the document that I've used to find this problem: <HTML> <HEAD> <TITLE>Test</TITLE> <STYLE type="text/css"><!-- OL { white-space: pre; text-align: justify; } --></STYLE> </HEAD> <BODY> <H1>A heading...</H1> <OL> <LI>A list item. This is special: this is really very very very long. I don't know what it is for, though. Maybe it will test something. For example, inlined borders and inset list element are candidates. </OL> </BODY> </HTML>
I believe all the effects you describe are the correct result of white-space: pre, which makes the whitespace act like the PRE element in HTML. Thus the spaces at the beginning of all bug the first line are significant. Once text-align: justify is implemented again, you should check to make sure it doesn't clash with white-space: pre. I'm not sure how they should interact.
The text-align:justify issue is covered by bug 588.
Target Milestone: M10 → M11
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
This is correct whitespace behavior
Status: RESOLVED → VERIFIED
Verifying bug invalid.
You need to log in before you can comment on or make changes to this bug.