- From: Erik Dahlström <ed@opera.com>
- Date: Wed, 19 Mar 2008 11:05:14 +0100
- To: "Dr. Olaf Hoffmann" <Dr.O.Hoffmann@gmx.de>, www-svg@w3.org
On Tue, 18 Mar 2008 17:55:37 +0100, Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de> wrote: >> If the author's intent is to have their SVG scale then they can and >> should >> specify a viewBox of course. However, people are sometimes going to get >> this >> wrong, and it would be nice to be able to control the behavior from the >> HTML >> side if the SVG is outwith your control (and perhaps comes from a >> different >> domain, which prevents you "fixing up" the SVG by setting a viewBox from >> script). > > I think, with the current SVG1.1 it is never really out of control, for > example one can use: example.svg#svgView(viewBox(0,200,1000,1000)) > to add a new viewBox to external content. > http://www.w3.org/TR/SVG11/linking.html#LinksIntoSVG > But obviously it is always better for authors to provide a viewBox. That's true. However, the user may not know the appropriate viewBox to use, and would have to inspect each file before use. IMHO that it makes it harder to re-use svg content than it should be. Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed
Received on Wednesday, 19 March 2008 10:08:16 UTC