Bug 40475

Summary: Wrong computed height for replaced elements with percentage height
Product: WebKit Reporter: Anders Edenbrandt <anders.edenbrandt>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: benjamin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Proposed patch none

Anders Edenbrandt
Reported 2010-06-11 07:03:05 PDT
According to CSS 2.1 section 10.6.2, replaced elements with a percentage height should have a computed height of 'auto' if the containing block does not have an explicit height. For example, an image element like this should be shown as a square: <p> <img src="resources/square-blue-100x100.png" width="100" height="50%"> </p> Other browsers (IE8, Firefox, Opera) get this right, provided they are in strict mode.
Attachments
Proposed patch (3.40 KB, patch)
2010-06-11 07:08 PDT, Anders Edenbrandt
no flags
Anders Edenbrandt
Comment 1 2010-06-11 07:08:49 PDT
Created attachment 58471 [details] Proposed patch
Benjamin Poulain
Comment 2 2010-11-09 05:32:10 PST
*** This bug has been marked as a duplicate of bug 37169 ***
Note You need to log in before you can comment on or make changes to this bug.