Open Bug 304840 Opened 19 years ago Updated 2 years ago

'line-height: normal' gives a line-height larger than the font height

Categories

(Core :: Layout: Text and Fonts, defect)

1.7 Branch
x86
Windows 2000
defect

Tracking

()

People

(Reporter: momat, Unassigned)

Details

(Keywords: testcase)

Attachments

(3 files)

Inline element (span) nested in a block element (div) causes the parent element
to have an extra vertical padding (on the top and at the bottom of a span).

Expected results: no extra padding should be visible (as in Opera nad IE).
Attached file minimal testcase
Keywords: testcase
Does this go away if you change the value of 'line-height' on the DIV to '1.0',
'normal', or '1em'?
Attached file extended testcase
line-height: normal is the default value when extra padding appears.
Setting line-height: 1em reduces div height too much.
Additional experiments with div height to set equal height of div and span also
fails.
Changing summary to reflect the problem that you're pointing out (which I don't
see on a GTK2 build).  I tend to think it's not a bug.
Component: Layout: Block and Inline → Layout: Fonts and Text
Summary: Extra div vertical padding for a nested inline element → 'line-height: normal' gives a line-height larger than the font height
QA Contact: layout.block-and-inline → layout.fonts-and-text
Attached image win32 screenshot
Fx 1.06 on Linux/Gtk2 is not affected.
Bug appears in win32 versions of 1.7.11 and Fx 1.06
Nightly 27 and Chrome 29 shows similar results. IE10 is different. Basically the same results from 8 years ago.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: