Closed Bug 335990 Opened 18 years ago Closed 18 years ago

image disappears when size is specified

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 334951

People

(Reporter: jonathanbaron7, Unassigned)

References

()

Details

When size is specified in <img ...>, using either
width=... or style="width: ...", the image does not display,
although space is set aside for it (examples 1 and 2 in the
test case).  This problem is absent
if the specified size matches the size of the image, as shown
in examples 3 and 4 in the test case.  If the size ALMOST
matches (example 5), behavior is strange and unpredictable.
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2

Can't reproduce -- all images fine here, but possibly related to Bug 335812?
It may be a Linux-specific problem.  It happens on two different
computers, both using FC 5.

I don't think it is the same as Bug 335812.  Interestingly, I can
reproduce that bug, but I can also resize the images to make them
smaller, using the menu in the test case for that bug.  I thought
that the difference might be in using JavaScript to set the style.
I just tried that in my test case and it didn't help.  I can see that
document.getElementById("P8").style.width="200px" successfully changes
the space allocated for the image but does not show the image.
(This is number 8 in the test case.)

*** This bug has been marked as a duplicate of 334951 ***
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.