Bug 45439 - Images with percent height inside a floated div should use intrinsic height.
Summary: Images with percent height inside a floated div should use intrinsic height.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 47156
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-08 23:00 PDT by Luke Macpherson
Modified: 2011-10-31 08:29 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Macpherson 2010-09-08 23:00:03 PDT
For the following snippet:
<div style="float: left;">
  <img style="width: 100%; height: 100%;"/>
</div>

Webkit renders the image with height 100% of the window, while IE and Firefox render the image at the intrinsic height of the image.

See chromium bug: http://code.google.com/p/chromium/issues/detail?id=29380
Comment 1 Nikolas Zimmermann 2011-07-23 05:01:48 PDT
47156 fixes this.
Comment 2 Nikolas Zimmermann 2011-10-31 08:29:35 PDT
Fixed in r98852.