On Wednesday, June 19, 2013 at 4:41 PM, Matt Basta wrote:
> > Is this in conjunction to having a width and height?
>
> It could be. The Marketplace enforces icons being square (and the MDN spec
> states "Icons must be square and are intended to visually represent the
> app."),
>
Right, but that's a marketplace restriction - we should not factor that at all
in the discussion (remember that we need to consider applications that are
installed from outside a store too). Other marketplaces might decide that their
icons must all be rectangles, triangles, or animated gifs - we have no control
over that.
> so width and height don't matter a whole lot for vector graphics.
>
I'm a bit confused. The links I presented showed that size matter _a lot_ for
vectors - they are considered problematic for anything smaller than 40-60px in
most cases.
> If you don't specify a width and height and you do specify a scalable
> graphic, it should be assumed that the image is scalable to any size.
>
I don't think that is a safe assumption. In SVG, you can specify an intrinsic
size on the SVG element (this makes vector graphics exactly the same as raster
graphics). Thus, this will only work for some icons. If the links I referenced
previously are to be believed, we won't see many professionally designed
applications going down this path. In any case, I agree that we would not
restrict this.
However, we need to be clear that when no size is given:
1. if it has an intrinsic size, use it.
2. use it only as the largest.
> If you do provide a width and height, the UA could choose the scalable icon
> with the closest proportions to what's needed (allowing the developer to
> provide more appropriate icons at different sizes).
>
Yes, this is what we want.
> > Generally, you only want to scale down, only scale up if you have no other
> > option.
>
>
> Yes, that's what I meant. If the UA is looking for a 64x64 icon and there's
> no scalable graphics and the largest icon provided is 32x32, the UA would be
> forced to scale up.
Exactly. Ok, cool.
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps