Bug 13333
Summary: | Support naturalWidth/naturalHeight on image elements | ||
---|---|---|---|
Product: | WebKit | Reporter: | Anders Carlsson <andersca> |
Component: | DOM | Assignee: | Anders Carlsson <andersca> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | ddkilzer |
Priority: | P2 | ||
Version: | 523.x (Safari 3) | ||
Hardware: | Mac | ||
OS: | OS X 10.4 |
Anders Carlsson
These return the real width and height of the image, and not the width specified by CSS or attributes
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
David Kilzer (:ddkilzer)
This may be P1 depending on if Bug 13395 is resolved by Yahoo! or not.
Darin Adler
I think this is the best way to fix the Yahoo problem in bug 13395; it should be relatively straightforward to do.
Anders Carlsson
I've implemented this, just need to write a layout test.
Darin Adler
Oh, OK. Too bad you didn't assign to yourself. I was just working on it too!
Darin Adler
My research indicates that these should return 0 when there is not a currently-loaded image.
Anders Carlsson
Darn, I just accepted the bug without reassigning it to myself, sorry about that.
Anders Carlsson
Committed revision 20954.
David Kilzer (:ddkilzer)
*** Bug 13395 has been marked as a duplicate of this bug. ***