Using escaped unicode in content

Is it possible to use escaped unicode in content to get emoji combinations like Phoenix for example, seems like this is not working. (🐦‍🔥) I tried both with the plain emoji and the escaped unicode.
.phoenix::after {
content: "🐦🔥";
}
.phoenix::after {
content: "\01F426\01F525";
}
.phoenix::after {
content: "🐦🔥";
}
.phoenix::after {
content: "\01F426\01F525";
}
But this only works if I use it in the html span tag directly on the page, but not as after pseudo element like in the code above. Of course the font is set and all I was using Noto Color Emoji which supports this combination.
18 Replies
ἔρως
ἔρως7mo ago
you have to use the separated unicode characters, or add @charset "utf-8"; at the top of the css https://developer.mozilla.org/en-US/docs/Web/CSS/@charset also, the font that you use has to support the characters https://emojiterra.com/phoenix-bird/ <-- as an example, this website gives you the css character sequence to show the bird
Peacock Plume
Peacock PlumeOP7mo ago
I see
ἔρως
ἔρως7mo ago
in this case, it seems that only the noto emoji font supports the compound emoji with the bird and fire
Peacock Plume
Peacock PlumeOP7mo ago
Alright thanks a lot, I will check it out if I have further issues I'll let you know 🙏
ἔρως
ἔρως7mo ago
by the way, you're missing the \200D, to combine both emojis
Peacock Plume
Peacock PlumeOP7mo ago
Yes I saw on the page you showed me! Thanks!
Peacock Plume
Peacock PlumeOP7mo ago
Great awesome it works! Thanks a lot for all that info, you're the best! I know I'm actually using the font from the Github repo, if you use the Variable version of it you can reduce the file-size to 1.9mb because it uses COLRV1 palettes for all the colors I think.
ἔρως
ἔρως7mo ago
but you have to be careful with support for that variant
Peacock Plume
Peacock PlumeOP7mo ago
Are you saying it's not free?
ἔρως
ἔρως7mo ago
some ios devices that are still supported may not work well with color fonts
Peacock Plume
Peacock PlumeOP7mo ago
I see I see yeah that's clear
ἔρως
ἔρως7mo ago
specially if they aren't updated due to performance reasons
Peacock Plume
Peacock PlumeOP7mo ago
Mainly use it for desktop and nothing too crucial actually just a hobby project. Right.
ἔρως
ἔρως7mo ago
you should design your own, or try to find an icon that you like, then use it as an svg <symbol> instead
Peacock Plume
Peacock PlumeOP7mo ago
True indeed and I do sometimes too. Well thanks again and have a good one, all the best!
ἔρως
ἔρως7mo ago
https://icones.js.org/ <-- you can use this website here, to find the icons i don't think it has this one, but oh well you're welcome
Peacock Plume
Peacock PlumeOP7mo ago
🙏 👍
Want results from more Discord servers?
Add your server