Bug 15014 - Image ratio and max-width don't match expected
Summary: Image ratio and max-width don't match expected
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://alastairc.ac/testing/webkit/ma...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-19 14:07 PDT by Alastair Campbell
Modified: 2007-08-20 01:11 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alastair Campbell 2007-08-19 14:07:15 PDT
Where an image has a width imposed but no height, the image display does not maintain the aspect ratio of the image's actual size. 

Also, where there is a max-width set at 100%, an image does not respect that when the parent is less than that.

I put a test case together at the URL above, other browsers (IE7, Opera & Gecko) seem to behave the same (and in the way I'd expected).
Comment 1 Sam Weinig 2007-08-19 15:56:04 PDT
Alastair, have you tested this in the nightly?
Comment 2 Alastair Campbell 2007-08-19 16:29:01 PDT
Hmm, I had, but re-opening the test case with it looks fine.

Does the webkit rendering not come through if you already have Safari open?

My apologies, I had lots of browsers open at the time :-/