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

If reuse of the same SVG `rel="icon"` is desirable, would it be
possible to have certain elements inside the SVG use `class="mask"` or
something similar?


--Taylor Hunt

On Tue, Jun 16, 2015 at 3:47 PM, Maciej Stachowiak <mjs@apple.com> wrote:
>
> 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.
>
> Regards,
> Maciej
>
>> 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 20:01:55 UTC