Closed Bug 39944 Opened 24 years ago Closed 24 years ago

images spontaneously shrink or expand in small height div

Categories

(Core :: Layout, defect, P2)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jlarsen, Assigned: waterson)

Details

(Whiteboard: [nsbeta3+] FIX IN HAND)

Attachments

(3 files)

Try this code snippit
<html>
<body>

<div id="Layer1" style="position:absolute; height:7%">
<img src="http://www.mozilla.org/images/mozilla-banner.gif" height="100%">
</div>

</body></html>

Image slowly resizes itself sometimes to the proper size, sometimes it starts 
increasing its size to infinity. If you don't see it, try resizing the window. 
Works on Gifs Jpgs and Pngs (and any other I would assume) (works best with wide 
skinny pictures) the small the height the better chances of it occuring, 
sometimes occurs up to 20%
Attached file example
I have observed this behavior using 2000-05-19-08 Win Talkback on Windows 98,
except instead of expanding, the image shrinks.
updating component and owner.
Assignee: asadotzler → clayton
Status: UNCONFIRMED → NEW
Component: Browser-General → Layout
Ever confirmed: true
QA Contact: jelwell → petersen
Triage duty calls. Reassinging to pierre.
Assignee: clayton → pierre
Nice effect indeed! Reassigned to Layout. The problem may be triggered by some 
roundings in the calculations but still, we should not keep on resizing the image 
like that.
Assignee: pierre → clayton
Summary: images weirdness in small height div → images spontaneously shrink or expand in small height div
I did not mean to send it back to clayton.
Reassigned to waterson because buster is still the Most Doomed Person.
Assignee: clayton → waterson
Status: NEW → ASSIGNED
Target Milestone: --- → M17
Keywords: correctness, nsbeta3
Target Milestone: M17 → M18
Just wanted ot make a note, the bug has increased in annoyance, it now tried to
confirm its cache of the image on each resize.. creating a very annoying looking
thing, and contantly reconnecting to the website, I assume the website doesn't
like this either.
[nsbeta3+]
Whiteboard: [nsbeta3+]
Priority: P3 → P2
We get into a feedback loop when reflowing the image frame with a constrained
height but an auto width. (At least, with this test case.)

The above patch attempts to mitigate that by rounding to pixels.

If this approach seems reasonable, we'll need to do the same thing for images
with constrained width and auto height.
this approach seems very reasonable.  r=buster, assuming you've done all the 
usual tests.
Whiteboard: [nsbeta3+] → [nsbeta3+] FIX IN HAND
fix checked in, r=buster,scc.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Fixed in the Aug 30th build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: