Closed Bug 177354 Opened 22 years ago Closed 22 years ago

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

Categories

(SeaMonkey :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: ericl, Assigned: asa)

Details

Attachments

(1 file)

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?
Attached file 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.
Fair enough.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: