[Webkit-unassigned] [Bug 43559] Computed style of an image being loaded has height and width 0px instead of auto (Products don't show on plan-itinteriors.com)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 24 10:44:53 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=43559





--- Comment #13 from Ojan Vafai <ojan at chromium.org>  2010-08-24 10:44:53 PST ---
A Firefox nightly returns pixel values from getComputedStyle. The difference appears to be tied to the timing of the load event.

If you listen to window's load event instead of DOMContentLoaded, then Firefox and WebKit get the same results. It appears the Firefox renders the image before DOMContentLoaded fires. Also, in Firefox, if the image is cached, then you get the full-size image. If it's not, then you get a 24px/24px image. Opera always gets the full-size image.

Not sure what the correct fix is here, but WebKit does seem to be the odd one out.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list