Bug 92410

Summary: <svg> element with no intrinsic size and max-width gets sized incorrectly
Product: WebKit Reporter: mitz
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: eric, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test case
none
Apply the rule for computing the width of elements with auto width and height, and intrinsic ratio but no intrinsic size to all such elements, regardless of whether they have a content renderer dino: review+

Description mitz 2012-07-26 11:58:35 PDT
Created attachment 154713 [details]
Test case

In the attached test case, the <svg> element ends up having a width of 300px (based on the default 300-by-150 for replaced elements with no intrinsic size) instead of 400px (based on its width attribute specifying 100%).
Comment 1 mitz 2012-07-26 12:01:36 PDT
<rdar://problem/11966895>
Comment 2 mitz 2012-07-26 12:57:29 PDT
Created attachment 154726 [details]
Apply the rule for computing the width of elements with auto width and height, and intrinsic ratio but no intrinsic size to all such elements, regardless of whether they have a content renderer
Comment 3 mitz 2012-07-26 13:11:11 PDT
Fixed in <http://trac.webkit.org/r123785>.