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%
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.
Triage duty calls. Reassinging to 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.
I did not mean to send it back to clayton. Reassigned to waterson because buster is still the Most Doomed Person.
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.
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.
fix checked in, r=buster,scc.
Fixed in the Aug 30th build.