Bug 26129 - SVG dynamic scaling broken
Summary: SVG dynamic scaling broken
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://idisk.mac.com/justindthomas-Pu...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-01 21:49 PDT by Justin Thomas
Modified: 2010-02-09 07:39 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Thomas 2009-06-01 21:49:24 PDT
I'm working on an SVG application where I depend on using viewBox settings to scale certain components to the size of the browser window.  In Firefox, the scaling works as intended: in the noted example, the gray background box and red path grow horizontally to fill the window while the flower and paths associated with the title/subtitle remain static.

In WebKit (Safari, Chrome, and the latest WebKit nightly), there are two problems:

1.  The graphic is initially rendered to almost fill the screen horizontally, but leaves some space on the right (incidentally, exactly enough space to accommodate the vertical scroll bar, if one exists).  If a scrollbar exists, the graphic is sized appropriately, but does not dynamically resize as the window size is changed (problem 2).
2.  The graphic does not change as the window is re-sized; only a refresh will cause the size to reset. When reset, the size exhibits the same gap on the right that is noted in problem 1.

I observe this exact behavior on my Mac 10.5 system in Safari and WebKit, as well as my Windows Vista system in Chrome.

Thanks!
Comment 1 Justin Thomas 2009-06-19 22:15:30 PDT
Confirmed that problem exists in Safari 4 as well.
Comment 2 Jeff Schiller 2009-11-05 11:17:36 PST
Can someone duplicate this to Bug 17424 ?
Comment 3 Nikolas Zimmermann 2010-02-09 07:39:45 PST
Fixed in trunk, works just like in Opera. Please retry.