Re: Constrained specification of Icon element

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 UTC