W3C home > Mailing lists > Public > www-svg@w3.org > April 2009

how should 'top' width/height larger than screen be handled?

From: Ruud Steltenpool <svg@steltenpower.com>
Date: Sun, 19 Apr 2009 13:33:05 +0200
Message-ID: <49EB0BF1.7070604@steltenpower.com>
To: www-svg@w3.org
Say i have <svg width="10in" height="10in" ......... </svg> ,
what does the spec say about how to put this on screen?

Or similarly;
Say i want to show a circular 'painting' at the same physical scale, on 
every screen size. It should be centered on screen.
For example: On a huge TV it would show completely with leftover space 
surrounding it, on a desktop monitor it would just fit, on a laptop 
screen it would have cut-offs top and bottom, on a netbook it would have 
cut-offs on left,right,top and bottom, on a mobile you'd see only a 
rectangular middle part.

What ways can you do that?

For scalability reasons i rather not put units all over the place within 
the SVG document (as advised in the spec).

I can probably do this with scripting, but don't expect that to be elegant.
Received on Sunday, 19 April 2009 11:33:48 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:17 UTC