Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emoji favicons #10908

Open
nt1m opened this issue Jan 13, 2025 · 2 comments
Open

Emoji favicons #10908

nt1m opened this issue Jan 13, 2025 · 2 comments
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest

Comments

@nt1m
Copy link
Member

nt1m commented Jan 13, 2025

What problem are you trying to solve?

I want to be able to use <link rel="shortcut icon" value="🌼"> or similar, instead of trying to export the emoji as an image and referencing it.

What solutions exist today?

No response

How would you solve it?

No response

Anything else?

No response

@nt1m nt1m added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest labels Jan 13, 2025
@flashymittens
Copy link

Sounds like <meta name="icon" content="🌼"> would be more correct, since it’s not a link.

@dmsnell
Copy link
Contributor

dmsnell commented Jan 16, 2025

While this doesn’t directly resolve what you’re asking for, did you consider embedding the SVG in a data URI? This seems to work for me in Firefox and Chrome (though I don’t know how to get Safari to properly render an SVG as a favicon even when referencing an external file)

<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🌼</text></svg>">

It’s not as succinct as content="🌼" but it also doesn’t require any exporting or build steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest
Development

No branches or pull requests

3 participants