Re: [w3c/manifest] Example suggests that `icons` `sizes` mean a minimum size, but normative text doesn't support that (#925)

@phoglenix wrote:
> I think the spec requires that the last-declared icon of "equally-appropriate" icons is used, so you have to be a little careful about sorting the list (make sure it's stable relative to whatever "appropriate" means).

Hmm, interesting.

@mgiuca wrote:
> Maybe we should add normative text:
>    Sort the list of icons by appropriateness.
>    Remove any inappropriate icons from the list.
>    Choose the most appropriate.

"Appropriateness" is perhaps a little bit subjective, but yes I do wonder whether sorting by size might help.

Another thing that isn't clear from the specification (and I'm not sure there's really a normative answer to) is what to do about icons which have different width and height dimensions. My algorithm only compares width and really assumes the icon is square, so if a developer provided a very tall or wide icon this would all fall apart.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/925#issuecomment-663483004

Received on Friday, 24 July 2020 10:55:33 UTC