Bug 45439

Summary: Images with percent height inside a floated div should use intrinsic height.
Product: WebKit Reporter: Luke Macpherson <macpherson>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on: 47156    
Bug Blocks:    

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.