[Webkit-unassigned] [Bug 10526] embedded SVG object doesn't scale right

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 10 08:08:35 PST 2006


------- Comment #11 from ryan at ryancannon.com  2006-11-10 08:08 PDT -------
Created an attachment (id=11461)
 --> (http://bugs.webkit.org/attachment.cgi?id=11461&action=view)
Re-illustrating the second testcase

I'm not sure what's happening in the first case is a bug. When WebKit loads the
SVG image, WebKit detects no intrinsic height, so it calculates the height of
the box based on CSS within the page and the default width of an object element
(300px). Since the height is a relative value and the width is an absolute
value, as the font-size increases the object's computed height increases, as
does the size of the circle. However, once the object's computed height becomes
greater than the object's computed width, the circle stops scaling. The issue
the user is having is an arbitrary calculation of <html:object>'s default
width. I'm not sure this is actually a bug because the SVG image does not have
an intrinsic width, and as such WebKit has to apply something—if you set the
intrinsic width of the <object> element to 13em, the circle scales as expected.

The second case, however, is a bug with the scaling of embeded SVG, similar to
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=288276">bug 288276</a> in
Mozilla. Opera is the only native SVG browser to get this right. The bug is
that the width and height attributes on <svg:svg> should be treated the same
was as the width and height of a raster image.

Perhaps this bug's title needs to be adjusted.

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list