Krzysztof,
<svg width='100%' height='100%' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
This actually is valid SVG and can be quite useful for web design (I would use only one direction BTW). I always found it a pity Inkscape does so little with % as part of the beauty of SVG is the use of such values for scaling of objects. I believe % are not accepted in Inkscape and setting the size of an object to 50% will just scale the object rather than make it set to 50% values.
Use case for it is for web designs that align objects to a centre point, scale rects to 20% of the right edge of the screen etc. It is valid SVG, but probably a lot of work to implement. Now though I always have to handcode that kind of stuff, so it would be way cool to let Inkscape set those values. Basically all you need to know is the size of the user screen, which can't be that hard either.
Think how easy it would be to use % for doing hatch patterns, using nothing but a dash array and a line in a clip area the size of the object the hatching should be in. One line, line hatch + dash array, two lines + dash array, cross hatch with patterns. It renders fine in a browser.
At least Inkscape can figure out that 100% should display the document in the screen resolution in this example.
Cheers,
Jelle
On Thu, 31 Oct 2013 00:36:14 +0800, inkscape-devel-request@lists.sourceforge.net wrote:
Message: 8 Date: Wed, 30 Oct 2013 17:36:04 +0100 From: Krzysztof Kosi?ski <tweenk.pl@...400...> Subject: Re: [Inkscape-devel] clipping and filters, import and export for formats other than SVG? To: su_v <suv-sf@...58...> Cc: Inkscape Devel inkscape-devel@lists.sourceforge.net Message-ID: <CAFLw2WRCgm0w90+gqRAjx-oc3bnw6Z-KAmatfa2Z9==BWq940Q@...401...> Content-Type: text/plain; charset=UTF-8 2013/10/29 su_v <suv-sf@...58...>:
This SVG file has width=height=100% and no viewBox attribute:
<svg width='100%' height='100%' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>
which results in a miniscule (1x1 px) document page size with current trunk (rev >= 12554). Other than that, the drawing content and the clipped objects displays correctly AFAICT.
Does anyone know what are we supposed to do in this case? I don't think it's even valid SVG. Regards, Krzysztof