A
A
Alexey2021-01-13 12:54:06
safari
Alexey, 2021-01-13 12:54:06

How to make a multi-colored icon on the safari tab?

It is known that the favicon.ico file is not enough to display the site icon on the safari tab. This needs a tag.

<link rel="mask-icon" href="website_icon.svg" color="red">
as described here
You can paint the background in one color

Everything would be fine, but google and mail.ru somehow solved this problem, their icons have many colors. They don't have any at all
rel="mask-icon"
How did they do it?5ffec2fc7aa51889068485.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2021-01-14
@le2xx

Wow, found a solution. This tag is out of date

<link rel="mask-icon" href="website_icon.svg" color="red">
it needs to be removed. In 2021, instead of it, you need to add
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">

And it worked. If there are both tags in html, then rel="mask-icon" will take precedence
6000198120f5b050418422.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question