W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

Re: Constrained specification of Icon element

From: Marcos Caceres <marcosc@opera.com>
Date: Fri, 6 Nov 2009 17:19:58 +0100
Message-ID: <b21a10670911060819t2ef5d143u54092e173ab1a549@mail.gmail.com>
To: Magnus Olsson <magnus.olsson@ericsson.com>
Cc: public-webapps <public-webapps@w3.org>
2009/11/2 Magnus Olsson <magnus.olsson@ericsson.com>

>  The icon element (*http://dev.w3.org/2006/waf/widgets/#icon0*<http://dev.w3.org/2006/waf/widgets/>)
> has width/height properties which only applies to SVG icons. To me the spec
> isn't fully clear how to use them. Is it ok for a user agent to ignore the
> width/height of an SVG icon? IMO it should be since it will be hard to do a
> consistent "widget desktop manager" with widgets from multiple sources (and
> therefore possibly with different width/height set) if the widget icons are
> of different sizes. To me the width/height should just be a guide to the
> user agent but the user agent should have the choice of scaling to the
> appropriate size. This is of course also important for widgets intended to
> run on multiple platforms with different screen sizes.
>

Yes, the user agent can decide how best to treat icons based on the
available size. Where the width and height help is to establish the viewport
(the window in which the SVG will be rendered).  So, if an SVG declares
itself to be 1000 by 1000px (<svg width="1000" height="1000" ...>), but the
width and height of the icon both say 100 pixels, then the rendered
representation of the SVG will simply get clipped because it won't fit in
the 100 by 100 viewport.



-- 
Marcos Caceres
http://datadriven.com.au
Received on Friday, 6 November 2009 16:20:39 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:35 GMT