Closed
Bug 126774
Opened 23 years ago
Closed 22 years ago
Table cell with fixed width is stretched when containing images and one of them is left aligned
Categories
(Core :: Layout, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
mozilla1.2alpha
People
(Reporter: markscott, Assigned: attinasi)
References
()
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
In the sample below there is a fixed width table with 3 images, one left aligned
one not aligned at all and one right aligned. This causes the table to get
stretched beyond its fixed width.
This does not happen in IE6, Netscape 6.1 or Netscape 4.6 (It also does not work
on my RH Linux machine, with 20020213 build)
I noticed this on http://www.dpreview.com on 02/20/02 (this may change) and also
created the sample below.
<html>
<body>
<img src="noimage.gif" width="370" height="50" alt="width=370">
<table border="1" cellspacing="0" cellpadding="0" width="370">
<tbody>
<tr>
<td width="370"> <img src="noimage.gif" width="100" height="50" align="left"
alt="Left aligned image">xxxx
xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx
xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx<br>
<img src="noimage.gif" width="350" height="10" vspace="2"><br>
<img src="noimage.gif" width="100" height="50" align="right" alt="Right
aligned image"></td>
</tr>
</tbody>
</table>
</body>
</html>
Comment 1•23 years ago
|
||
->Tables
Assignee: attinasi → karnaze
Component: Layout → HTMLTables
QA Contact: petersen → amar
After cleaning up the above snippet, it seems the issue is caused by the left
aligned image, when the other (not aligned) image exceeds certain width. The
right aligned image is irrelevant. Attaching the corrected testcase and updating
summary from "Having iamges in a table with a fixed width that are left and
right aligned is stretched" to "Table cell with fixed width is stretched when
containing images and one of them is left aligned". Build 2002021915, Win98.
Marking as NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Having iamges in a table with a fixed width that are left and right aligned is stretched → Table cell with fixed width is stretched when containing images and one of them is left aligned
the block reports as a maxelementsize the sum of the images
area 00EBACFC r=1 a=9180,UC c=9180,UC cnt=707
block 00EBAFE4 r=1 a=9180,UC c=8940,UC cnt=708
text 00EBB1F0 r=0 a=8940,UC c=UC,UC cnt=709
text 00EBB1F0 d=0,0
img 00EBB38C r=0 a=8940,UC c=5550,750 cnt=710
img 00EBB38C d=5550,750
text 00EBB4CC r=0 a=3390,UC c=UC,UC cnt=711
text 00EBB4CC d=60,285
tblO 00EBD78C r=0 a=8940,UC c=0,0 cnt=712
tbl 00EBD98C r=0 a=8940,UC c=5520,UC cnt=713
rowG 00EBB264 r=0 a=UC,UC c=UC,UC cnt=714
row 00EBDCA0 r=0 a=UC,UC c=UC,UC cnt=715
cell 00EBDE70 r=0 a=UC,UC c=5550,UC cnt=716
block 00EBDED0 r=0 a=UC,UC c=UC,UC cnt=717
text 00EBE014 r=0 a=UC,UC c=UC,UC cnt=718
text 00EBE014 d=0,0 me=0
place 00EBE45C r=0 a=UC,UC c=UC,UC cnt=719
place 00EBE45C d=0,0 me=0
img 00EBE34C r=0 a=UC,UC c=2250,750 cnt=720
img 00EBE34C d=2250,750 me=2250
text 00EBE4C0 r=0 a=UC,750 c=UC,UC cnt=721
text 00EBE4C0 d=12420,285 me=420
br 00EBE528 r=0 a=UC,750 c=UC,UC cnt=722
br 00EBE528 d=0,0 me=0 status=0x4300
text 00EBE554 r=0 a=UC,UC c=UC,UC cnt=723
text 00EBE554 d=0,0 me=0
img 00EBE648 r=0 a=UC,UC c=4500,750 cnt=724
img 00EBE648 d=4500,750 me=4500
text 00E56804 r=0 a=UC,UC c=UC,UC cnt=725
text 00E56804 d=60,285 me=0
block 00EBDED0 d=14715,1095 me=6795 <<<<<<<<<< 2250 + 4500 = 6750
cell 00EBDE70 d=14745,1125 me=6825
row 00EBDCA0 d=UC,1125
====> this is a block layout bug
Assignee: karnaze → attinasi
Component: HTMLTables → Layout
Updated•23 years ago
|
Target Milestone: --- → mozilla1.2
Updated•23 years ago
|
Priority: -- → P3
Comment 5•23 years ago
|
||
I see this on Linux 20020300607. So can someone expand OS?
I started noticing this several months ago on the the front page of
www.salon.com. It took until now to understand what was going on and find this bug.
Directly below "Editor's picks" you will see a small picture link followed by
text. It is left aligned and causes the 4rth column to be larger than its
allocated size.
Comment 6•22 years ago
|
||
Even though old, this looks like bug 186593. Reporter, is the problem gone in
current trunk?
Reporter | ||
Comment 7•22 years ago
|
||
I just tried my original testcase, above, and it is still not working, at least
on the last 1.3 release candidate (20030310) which is the latest version on my
machine at the moment.
Comment 8•22 years ago
|
||
bug 186593 doesn't contain the fix..
Comment 9•22 years ago
|
||
testcase worksforme; is this still a problem?
Reporter | ||
Comment 10•22 years ago
|
||
As you say I just tried this using build 2003042412 and it is indeed fixed.
Comment 11•22 years ago
|
||
Great. ;) Marking so.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•