Moz appears to vertically pad table cells with xx-small fonts

RESOLVED INVALID

Status

SeaMonkey
General
RESOLVED INVALID
15 years ago
12 years ago

People

(Reporter: Eric Liga, Assigned: asa)

Tracking

Trunk
x86
Windows 2000

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

15 years ago
Tested on Win2k using build 2002102208 (and 1.1 on win2k)

I know tables should not be used for layout, but it's probably worth noting that
Moz and IE diverge noticably on this... I'll attach the simplest test-case to
demonstrate. 

When font size is large or unspecified, Moz will keep the cell tighly wrapped
around the text.  When specifying style="font-size: xx-small" or
(style="font-size: x-small" (no diff on the latter in Moz? seems different in
IE) or size=-4, etc) it leaves a noticable gap above the text and a small gap
below it.  IE does not.  Plays a bit of havoc with cross-browser layouts using
tables, especially considering that some wonky javascript manipulations of the
DOM seem to cause this to be re-rendered tightly.  Ideas?
(Reporter)

Comment 1

15 years ago
Created attachment 104544 [details]
Simple test case
You should set the font-size on the <td>, not the <font>... setting it on the
<font> does not change the line-height, which is what determines the <td> size.

There's really no way we could "fix" this without seriously violating the CSS
spec, and unless many more pages than I've noticed suffer from this problem we
should not do it even in quirks mode.
(Reporter)

Comment 3

15 years ago
Fair enough.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.