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

Charles Iliya Krempeaux supercanadian at gmail.com
Tue Apr 29 22:37:16 PDT 2008


Sorry to reply to my own reply.

For vector formats, that can be scaled to any size, it might be a good idea
to be able to specify the aspect ratio somehow.

For example, if the aspect ratio of one vector format icon is 4:3 and the
other 16:9, then it would be a "good" idea to be able to specify those
somehow.

So possibly something like...

<link type="icon" type="application/svg" width="4*" height="3*"
href="A.svg">

<link type="icon" type="application/svg" width="16*" height="9*"
href="B.svg">

(Note, I used the N* format to specify that the width and height are ratios
rather than pixel measurements.  For some reason I remember seeing these
used on <col> elements before... although I couldn't find anything like it
in doing a quick look over the the HTML5 spec.  So maybe those didn't come
from the spec.)


-- 
Charles Iliya Krempeaux, B.Sc.
http://ChangeLog.ca/

Vlog Razor... Vlogging News... http://vlograzor.com/


On Tue, Apr 29, 2008 at 10:24 PM, Charles Iliya Krempeaux <
supercanadian at gmail.com> wrote:

> Hello,
>
> On Tue, Apr 29, 2008 at 10:13 PM, Maciej Stachowiak <mjs at apple.com> wrote:
>
> >
> > On Apr 29, 2008, at 6:52 PM, Ian Hickson wrote:
> >
>
> [...]
>
>
> >
> > <link type="icon" type="application/svg" sizes="any" href="whatwg.svg">
> > <link type="icon" type="image/microsoft.vnd.icon" sizes="16x16 32x32"
> > href="whatwg.ico">
> > <link type="icon" type="image/x-apple-icons" sizes="16x16 32x32 64x64
> > 128x128 256x256 512x512" href="whatwg.icns">
> > <link type="icon" type="image/png" sizes="59x60" href="whatwg.png">
> >
> >
>
> Couldn't this also be done as...
>
> <link type="icon" type="application/svg" href="whatwg.svg">
>
> <link type="icon" type="image/microsoft.vnd.icon" width="16" height="16"
> href="whatwg.ico">
> <link type="icon" type="image/microsoft.vnd.icon" width="32" height="32"
> href="whatwg.ico">
>
> <link type="icon" type="image/x-apple-icons" width="16" height="16"
> href="whatwg.icns">
> <link type="icon" type="image/x-apple-icons" width="32" height="32"
> href="whatwg.icns">
> <link type="icon" type="image/x-apple-icons" width="64" height="64"
> href="whatwg.icns">
> <link type="icon" type="image/x-apple-icons" width="128" height="128"
> href="whatwg.icns">
> <link type="icon" type="image/x-apple-icons" width="256" height="256"
> href="whatwg.icns">
> <link type="icon" type="image/x-apple-icons" width="512" height="512"
> href="whatwg.icns">
>
> <link type="icon" type="image/png" width="59" height="60"
> href="whatwg.png">
>
> Basically <link>'ing to the same "icon" more that once for each size it is
> "good" for.
>
>
> See ya
>
> --
> Charles Iliya Krempeaux, B.Sc.
> http://ChangeLog.ca/
>
>
> Vlog Razor... Vlogging News... http://vlograzor.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20080429/0232c35f/attachment-0001.htm>


More information about the whatwg mailing list