- From: Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>
- Date: Wed, 22 Aug 2012 18:14:37 +0200
- To: www-svg@w3.org
Daniel Holbert : > On 08/22/2012 07:48 AM, Dr. Olaf Hoffmann wrote: > >> Observation 1. If you have an SVG document that already has a viewBox > >> on the outer svg element, you don't seem to be able to use an SVG > >> fragment identifier to remove it altogether. > > > > Sound like a bug - if you set a new viewBox, it should not matter what > > is in the file, this is the purpose of the feature... > > Just to be clear -- what Robert means is that there doesn't seem to be a > way to use svgView() to ask for a view with _no_ viewbox. Intuitively, it > seems like one should be able to use: > #svgView(viewBox()) > (intentionally empty^^) > ...but the spec doesn't seem to allow for that at the moment. Or if it > does allow that, it's not particularly obvious. Yes - misunderstanding on my side ;o) Currently you have to reference an SVG tiny 1.2 document, this can have viewBox="none". On the other hand there is no need for SVG tiny 1.2 viewers to interprete viewBox in an #svgView ;o) Obviously for SVG tiny 1.2 one can trigger an animation to set the viewBox to none instead of using an #svgView - but this has to be prepaired by the author of the referenced document, not by the author of the referencing document ... Maybe 'none' will be available in SVG 2 as well? - Who knows (not in the current draft as many nice features from SVG tiny 1.2). Of course this will not help for SVG 1.1 documents and viewers like Mozilla, not interpreting SVG tiny 1.2 ...
Received on Wednesday, 22 August 2012 16:15:18 UTC