Closed Bug 74542 Opened 23 years ago Closed 16 years ago

table with background/transparent images not rendered properly

Categories

(Core :: Graphics: ImageLib, defect, P3)

All
Linux
defect

Tracking

()

RESOLVED INCOMPLETE
Future

People

(Reporter: cpicton, Unassigned)

References

()

Details

(Keywords: platform-parity, Whiteboard: [needs review])

Attachments

(1 file)

Using build 200104221 on linux

Ref http://ftp.uskonet.com/test/test.html

The table images are set out as follows:

+----------+------------------------------------------------+-----------+
|   topleft|                  top                           |topright   |
+----------+------------------------------------------------+-----------+
|      left|                                                |right      |
+----------+------------------------------------------------+-----------+
|bottomleft|                  bottom                        |bottomright|
+----------+------------------------------------------------+-----------+

Under IE, the table is rendered correctly

Under mozilla, the corner images (topleft/topright/etc) are not fully rendered 
(some parts are left blank), and are not placed correctly within the cell.  The 
images top,bottom,left,right are not aligned correctly either.
adding "display:block" (see bug 22274) to the images fixes the alignment of the
top,left,right,bottom cells.

The other problem (the corner images not positioned correctly) is still there. 
There basically seems to be some space between the images and the border of the
cell.  Posible imagelib problem?  (in that a part of the image is shown
transparent when it should not be).
This was fixed a couple days ago

WORKSFORME
Platform: PC
OS: Windows 98
Mozilla Build: 2001042304

Marking WORKSFORME
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
I still see the problem with linux build 2001-04-23-08.  Linux-only bug...
Status: RESOLVED → UNCONFIRMED
Keywords: pp
Resolution: WORKSFORME → ---
definitely an imagelib problem and a dup, but I can't find the original...
Assignee: karnaze → pavlov
Component: HTMLTables → ImageLib
QA Contact: amar → tpreston
Whiteboard: DUPEME
I believe this is a dup of 50974 and I am marking it as that, if I am wrong, 
please reopen

*** This bug has been marked as a duplicate of 50974 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → DUPLICATE
reopening.  the images in question are gifs, not pngs.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Veryfying on existence of bug 81130 and bug 83087. However they are both dups of
bug 50974. Either they should be made dups of this one or this bug should be
reverted to a dup status, too (it was already a dup of bug 50974)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → mozilla0.9.3
Doesn't look like this is getting fixed before the freeze tomorrow night.
Pushing out a milestone.  Please correct if I'm mistaken.
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Target Milestone: mozilla0.9.4 → mozilla0.9.5
I just created a new test on the original page.

I took the gifs, converted them to pngs and made a new table using pngs

The table using pngs renders correctly, the one using gifs doesn't
.
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Target Milestone: mozilla0.9.6 → mozilla0.9.8
Reassigning to nivedita
Assignee: pavlov → nivedita
Whiteboard: DUPEME
Target Milestone: mozilla0.9.8 → ---
also see this on win-xp build 2002021108
OS: Linux → All
Hardware: PC → All
I have attached the patch which fixes the bug partially. The gif has image size
as 21*21, but the screen_width and screen_height are 24*24.  

The image was not getting correctly displayed because a frame of 21*21 was
being created for this gif. Hence to avoid this, in AppendFrame, I have addded
a check if the gif in non animated and it is the first frame, and if the screen
dimesions are greater than image dimensions then create a frame of screen
dimesions. But some how this is fixing the bug partially.

This patch also fixes the bug 113561, but partailly :(.
Blocks: 113561
Whiteboard: [needs review]
Err... yeah, horizontal alignment looks good now on the GIF version, but
vertical (strictly the top three images) is still off (ie, a gap). Also, and
this may just mean that I did something wrong of course, before the patch
(today's source) the GIFs had transparent bits, now they have black bits and a
handful of (regularly scattered) little coloured dots at the bottom. The latter
is probably a side-effect of the incorrect vertical alignment I suppose.

I'll try a 'make clean' and try it again (and retry without the patch to check
for blackness, for sanity's sake)
Well, it's not quite right, it definitely seems to have black (noise?)
background, where it should be set to the background colour, which I presume is
because of:
+          FillWithColor(mCompositingFrame, 0);
...without setting the fill colour first. Maybe.
.
Assignee: nivedita → pavlov
Priority: -- → P3
Target Milestone: --- → mozilla1.1alpha
retargeting
Target Milestone: mozilla1.1alpha → Future
paper, any ideas here?
> Ref http://ftp.uskonet.com/test/test.html

testcase is gone
Assignee: pavlov → nobody
QA Contact: tpreston → imagelib
bug is 7 years old, resolved WFM on Windows, testcase is gone 2 years ago, so I'm resolving this bug as INCOMPLETE/Linux only
Status: NEW → RESOLVED
Closed: 23 years ago16 years ago
OS: All → Linux
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: