Closed Bug 423347 Opened 16 years ago Closed 16 years ago

<ol> <li> numbers can grow past the left margin

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 15438

People

(Reporter: josh, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

Tested with Firefox 2.0.0.12, Gecko/2008012902, Mozilla rv:1.8.1.12.

If an <ol> has enough <li>s in it, the numbers will grow past the left margin.  In my case, the <ol><li> lives directly in the <body>, and in the absence of CSS, the numbers will grow past the left margin if they have more than 3 digits.  The attached HTML test case has an <ol> with 10000 <li>s in it, and the numbers grow off the left edge of the browser window.

Ideally, the width of the aligned column of text containing the numbers should grow to accommodate the widest number.
This also appears in current trunk.

This can be fixed by the author by just adding a bit more padding to the ol. It's probably not worth the cost of calculating how wide the space would need to be, as the current spacing is enough for nearly all cases. Also, it's likely that authors are relying on the spacing being a certain size, and having it change just because a different font is being used so more or less space is needed would be bad.

Recommend wontfix, but I'll leave it up to someone with authority. (Note that the specs--2 and working draft of 3--say nothing on this matter).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: 1.8 Branch → Trunk
Keywords: testcase
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: