Open Bug 1415759 Opened 7 years ago Updated 2 years ago

List markers should inherit 'line-height' from block

Categories

(Core :: Layout: Block and Inline, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: fantasai.bugs, Unassigned)

Details

Attachments

(2 files, 1 obsolete file)

Firefox seems to set the line-height of a list marker to normal even if the list-item has line-height set to something else (like 1). This can cause the list-item to inflate the height of the line, which is quite unexpected.
Attached file TC.html (obsolete) —
This and TC.html quite clearly show the issue, especially looking compared with Chrome.
Attached file TC.html
Attachment #8926669 - Attachment is obsolete: true
Priority: -- → P3
I'm unconvinced it's actually `normal`. I think it's using the computed line height + 1 (in some unit I'm not entirely sure about). I'm seeing it always 1px out at 96dpi, regardless of font-size, and 0.5px out at 192dpi.
It's... some kind of normal: https://searchfox.org/mozilla-central/rev/fb5422ff98ba43f3732debd9d1f4dcd3b3a920f6/layout/generic/nsBulletFrame.cpp#1113-1120

It uses the font's max height as its height, which should match how height is calculated for inline elements. The probably is probably that line layout / block frame shouldn't count height of bullet frame when placing lines.

(With that being said, IIRC I tried to make bullet frame match inline frame's behavior on line height, but that broke stuff... I cannot recall exactly what did I try to do and what was broken at that time, though.)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: