Open Bug 487296 Opened 17 years ago Updated 4 years ago

line height is larger in Firefox 3.0.8 than Safari

Categories

(Core :: Graphics, defect)

x86
macOS
defect

Tracking

()

UNCONFIRMED

People

(Reporter: marcia, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(3 files)

Seen while running Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.0.8) Gecko/2009032608 Firefox/3.0.8 STR: 1. Visit site 2. Observe layout of tabs on the right hand side of the page. Screenshots attached.
Same issue happens using 10.5, so this is not a 10.6 specific bug.
Attached file Testcase —
The UL has zero height, but has a 22px bottom padding. The float LI "tab" height is supposed to fit exactly into this padding. Firefox ends up with 2px larger line height (14px) than Safari (12px) even though the font is the same. I added a "tab2" with font-weight:normal for comparison (the URL uses font-weight:bold). Safari Mac: 22px 21px 12px 10px 12px 10px Firefox 3.0.8 Mac: 24px 23px 14px 10px 14px 10px Firefox 3.0.8 Linux: 24px 23px 14px 10px 13px 10px
Probably INVALID, but maybe it's worth investigating why we have larger line height than Safari for the same font and which one is "right"?
Severity: normal → minor
Component: Layout → GFX: Thebes
Keywords: testcase
QA Contact: layout → thebes
Summary: Tab does not lay out cleanly on Firefox 3.0.8, renders fine using Safari → line height is larger in Firefox 3.0.8 than Safari
Version: 1.9.0 Branch → unspecified
WebKit rounds off numbers differently than Gecko. In attachment (id=371587), according to the DomInspector, body has a computed size of 13.33333px. According to the WebKit inspector, it has a font-size of 13px. Specified value is 10pt. You then can see how this results in different heights / line-height. Gecko computes the height of the .li div to 22.8333px, the line-height to 13.8333px. WebKit: height: 23px; the WebKit Inspector doesn't tell the line-height value. Minefield latest vs WebKit latest nightly on OS X 10.5.6. Both browsers have identical settings. I don't have Verdana installed on this machine. You may see different numbers than me due to this.
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: