W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2008

[whatwg] <link rel=icon width="" height="">

From: Maciej Stachowiak <mjs@apple.com>
Date: Tue, 29 Apr 2008 23:25:16 -0700
Message-ID: <4D2FB43F-7A29-4579-AAF7-F8ABC4BAD34E@apple.com>

On Apr 29, 2008, at 10:33 PM, Michael(tm) Smith wrote:

> Ian Hickson <ian at hixie.ch>, 2008-04-30 01:52 +0000:
>
>> The Gears team has an API that allows authors to specify a set of  
>> icons:
>>
>>   http://code.google.com/apis/gears/upcoming/api_desktop.html
>>
>> They used a scripted API, but when I tried to get them to use a
>> declarative API, they said that the main reason they used a  
>> scripted one
>> is that the declarative options didn't have a way to specify  
>> dimensions.
>>
>> This is a proposal to add "height" and "width" attributes to <link>
>> specifically for the case of rel=icon, so that authors can provide
>> multiple icons and let the UA decide which to use based on their size
>> (without having to download them all to find out which is best).
>
> I notice the docs for the "icons" param of the Gears createShortcut()
> method describe four discrete sizes that all have the same height
> and width ("An object containing one or more of these named
> properties: 128x128, 48x48, 32x32, 16x16...").
>
> So do UAs expect link at rel=icon icons to always have the same
> height and width, and if so should the HTML5 spec make it clear
> that their height and width should be the same?

Not all platforms use icons that have the same width and height. For  
example, the standard size for iPhone icons is 59x60.

Regards,
Maciej
Received on Tuesday, 29 April 2008 23:25:16 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:02 UTC