Closed Bug 5749 Opened 25 years ago Closed 25 years ago

an image of 1 pixel high in a TD does not make TD area 1 px high. (TD doesn't shrink)

Categories

(Core :: Layout: Tables, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: bmlynch, Assigned: karnaze)

References

()

Details

I've tested this problem on Windows NT SP4 and i'm currently using build
1999042908 (although I've noticed this bug in previous versions).

The problem is this code:

<table bgcolor="#666666" cellpadding=0 cellspacing=0 border=0 width="100%">
<tr>
	<td><img src="images/dot.gif" width=1 height=1 border=0></td>
</tr>
</table>

Where dot.gif if a 1x1 transparent gif. So this should render a line but instead
it renders as if the code was:

<table bgcolor="#666666" cellpadding=0 cellspacing=0 border=0 width="100%">
<tr>
	<td><br></td>
</tr>
</table>

This code is viewable at:
http://www.cs.uiowa.edu/~bmlynch/test/test.html

The 3 webpages I gave you use this code. (The bug quite obvious on the news.com
site.)

Also, this only is a problem horizontally -- using a 1x1 gif for a vertical line
is OK.

Note: Changing the cellpadding, cellspacing and width doesn't make a difference.
Status: NEW → ASSIGNED
Target Milestone: M7
Moving to M9.
This seems fixed to me from your test case.

bmlynch@cs.uiowa.edu: could you check if this is fixed.  If so, mark it
RESOLVED-WORKSFORME or RESOLVED-FIXED.

If it's not fixed, could you describe what it is you're seeing that's a problem
- the width of the gray stripe, the space around it, or what?
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Reporter said by email that he thought bug was fixed.  Marking WORKSFORME.
Status: RESOLVED → VERIFIED
Verified Worksforme
You need to log in before you can comment on or make changes to this bug.