W3C home > Mailing lists > Public > www-svg@w3.org > June 2004

Re: RE : RE : What is the best way to design full vectorial scroll-down menus with SVGT1.2

From: Chris Lilley <chris@w3.org>
Date: Fri, 25 Jun 2004 19:23:49 +0200
Message-ID: <1309820485.20040625192349@w3.org>
To: "MAHE Vincent FTRD/DIH/REN" <v.mahe@francetelecom.com>
Cc: "Marc Verstaen" <marc@beatware.com>, www-svg@w3.org

On Friday, June 25, 2004, 6:33:31 PM, MAHE wrote:

MVFDR> Hello Marc,

MVFDR> Yes, I want this kind of menus but isn't it possible not
MVFDR> to mention dimensions in <svg width="160" height="240" ...>

well, the defaults for those attributes are "100%" which does what you
want. However, as the content is designed in a 160 x 240 coordinate
system you would need viewBox="0 0 160 240" to declare this world
coordinate system.

MVFDR> And to put percentage values in basic forms like : 

MVFDR> <rect fill="#fff" x="-80" y="-120" width="100%" height="50%"/>

You don't need percentage based values. (I know thats the only way to do
it in HTML/CSS). You need a viewBox, and you need to differentiate
between the screen pixel coordinate system and the SVG world coordinate

MVFDR> Instead of :
MVFDR> <rect fill="#fff" x="-80" y="-120" width="160" height="240"/>

That syntax would in fact be perfectly fine and perfectly scalable.

MVFDR> In HTML, as you certainly know, we often use this kind of
MVFDR> mechanisms since we don't know the screen size of the device.
MVFDR> The S of SVG stands for "Scalable" which means that it
MVFDR> must be possible to define fully scalable components in SVG ...
MVFDR> no ?

Yes. See above. Note that
<rect fill="#fff" x="-80" y="-120" width="160" height="240"/>
is, by default, scalable (and is not, in the general case, 160 device
pixels wide).

MVFDR> What about the text ? What kind of fonts should I use in
MVFDR> order to have fully scalable text ?
MVFDR> All the samples I see are fixed size.

You are confusing screen coordinates and world coordinates. They have
numerical values;that does not make them a fixed size.

MVFDR> What I want to avoid is to be obliged to generate a
MVFDR> different SVG stream for each target device


MVFDR> : I just put my SVG
MVFDR> file on a web server and I'm sure that all mobile devices will be
MVFDR> able to display it correctly in Full screen.

You have that already.

 Chris Lilley                    mailto:chris@w3.org
 Chair, W3C SVG Working Group
 Member, W3C Technical Architecture Group
Received on Friday, 25 June 2004 13:23:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:59 UTC