Bug 45439
| Summary: | Images with percent height inside a floated div should use intrinsic height. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Luke Macpherson <macpherson> |
| Component: | Layout and Rendering | Assignee: | 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: | |||
Luke Macpherson
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Nikolas Zimmermann
47156 fixes this.
Nikolas Zimmermann
Fixed in r98852.