Bug 82489

Summary: SVG Inline content incorrectly sizes
Product: WebKit Reporter: Stephen Chenney <schenney>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: krit, robertc, zachleatherman, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Repro case none

Description Stephen Chenney 2012-03-28 11:18:06 PDT
Created attachment 134346 [details]
Repro case

When svg is included inline with text in an html document with the width defined and a viewbox, it negotiates a 100% height. Other browsers set the height to preserve the given width and aspect ratio from the viewbox, as one would hope for.
Comment 1 Nikolas Zimmermann 2012-03-29 00:22:21 PDT
As noted in the other bug report 82487, intrinsic sizing for inline SVG is just not implemented yet. Fortunately the framework for that is finished, it's just a matter of actually finishing it :-)
Comment 2 Zach Leatherman 2012-09-27 15:18:58 PDT
Just a note for future visitors, I had luck setting max-height: 100% on the inline svg element as a workaround.
Comment 3 Dirk Schulze 2014-05-13 08:09:43 PDT
Fixed as well.