W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2015

Re: [whatwg] A mask="" advisory flag for <link rel=icon>

From: Maciej Stachowiak <mjs@apple.com>
Date: Tue, 16 Jun 2015 12:47:53 -0700
Message-id: <00A92D35-9575-406A-8E33-8E529C6FBABE@apple.com>
To: Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
Cc: whatwg@whatwg.org, Karl Dubost <karl@la-grange.net>, Edward O'Connor <eoconnor@apple.com>

There’s no technological enforcement that the SVG only uses the color black. We will interpret it as a mask in the same way as the SVG ‘mask’ element, which effectively combines the luminance with the alpha channel. Effectively, this means that other colors will end up partly transparent, so using other colors will probably do something weird, but nothing prevents authors from doing that afaik.

The reason for treating the icon as a mask is that we want to enforce having a monochrome shape, specifically for our pinned tabs feature.


> On Jun 15, 2015, at 6:52 PM, Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> wrote:
> If I am not mistaken, it should be possible to use the outline shape
> while not requiring 100% black color for every path in the SVG icon.
> As I see it, a proper icon has to have a distinctive outline anyway.
> Karl Dubost <karl@la-grange.net> writes:
>> Nils,
>> Le 16 juin 2015 à 10:03, Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> a écrit :
>>> Edward O'Connor <eoconnor@apple.com> writes:
>>>> These images can be tinted to better fit in with the site's theme.
>>> Please tell me where the requirement for SVG favicons with 100% black
>>> paths comes from. I do not understand why an SVG favicon cannot have
>>> proper SVG colors so there are no interoperability issues with it.
>> Ed, maybe, replied already I believed in the sentence above.
>> The mask icon is giving just a shape. So that the chosen theme of the phone can customized the color to its own choice. Be imposed by the brand of the operator, or I guess someone hacking its theme to have its own.
>> see for example
>> http://stackoverflow.com/questions/9711481/icon-color-on-different-themes
>> I guess things like "Android theme", "icon sets", etc. would give some answers.
>> https://dribbble.com/search?q=+icon+sets+monochrome
>> It's a way for a site to provide a generic shaped icon but that will adjust its colors depending on the theme.
>> --
>> Karl Dubost 🐄
>> http://www.la-grange.net/karl/
> -- 
> Nils Dagsson Moskopp // erlehmann
> <http://dieweltistgarnichtso.net>
Received on Tuesday, 16 June 2015 19:48:18 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:33 UTC