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)
Tracking
()
NEW
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).
| Reporter | ||
Comment 1•19 years ago
|
||
Does this go away if you change the value of 'line-height' on the DIV to '1.0', 'normal', or '1em'?
| Reporter | ||
Comment 3•19 years ago
|
||
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
| Reporter | ||
Comment 5•19 years ago
|
||
Fx 1.06 on Linux/Gtk2 is not affected. Bug appears in win32 versions of 1.7.11 and Fx 1.06
Comment 6•11 years ago
|
||
Nightly 27 and Chrome 29 shows similar results. IE10 is different. Basically the same results from 8 years ago.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•