为什么Emoji表情无法在Chrome中显示超过特定大小? [英] Why do emoji not render above a certain size in Chrome?

查看:327
本文介绍了为什么Emoji表情无法在Chrome中显示超过特定大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,表情符号在Chrome中无法呈现超过特定大小的图像.这个大小似乎与font-sizescale无关,只是被渲染的表情符号的像素大小.

For some reason emoji do not render above a certain size in Chrome. This size seems unrelated to font-size or scale, it is just simply the pixel size of the emoji being rendered.

由于图像不是矢量,我可以理解不希望它们过大的原因,但是我不确定这只会影响Chrome.

Since the images are not vectors, I can understand the reasoning behind not wanting them to be abnormally large, however since this only effects Chrome I am unsure.

这是Chrome浏览器错误,还是emoji标准中指定最大预期大小的内容?

Is this a Chrome bug, or something in the emoji standard that specifies a max intended size?

以下是两个非渲染表情符号的示例:

Here are two examples of non-rendering emoji:

  • http://jsfiddle.net/e6zysLg7/7/
  • http://jsfiddle.net/eyy6moLx/1/

推荐答案

这是一个Chrome错误

Is this a Chrome bug

是的.例如,请参阅以下内容:

Yes, it is. See, for example, these:

  • bug report: https://bugs.chromium.org/p/chromium/issues/detail?id=719648
  • bug report: https://bugs.chromium.org/p/chromium/issues/detail?id=501071
  • test page: https://tobireif.com/posts/maximum_font_size_for_emoji/

根据大量测试,当前表情符号的最大字体大小为54px.但我不会放弃希望:)

Based on a lot of testing, 54px is the current maximum font size for emoji. But I will not give up hope :)

2018年10月更新:

Update October 2018:

在Mobile Chrome 69中,表情符号的最大字体大小为146px.

The maximum font-size for emoji in Mobile Chrome 69 is 146px.

截屏: https://app.crossbrowsertesting.com/public/ib8393c20a124bac/livetests/14400380/snapshots/z66ee2a9e2217b4cad00

如果将其设置为147px,则表情符号无法正确呈现: https://app.crossbrowsertesting.com/public/ib8393c20a124bac/livetests/14400384/snapshots/za103323111cb78aeff2

If you set it to 147px, the emoji are not rendered properly: https://app.crossbrowsertesting.com/public/ib8393c20a124bac/livetests/14400384/snapshots/za103323111cb78aeff2

有关其他移动浏览器的一些其他信息: https://tobireif.com/posts/maximum_font_size_for_emoji/

Some additional info regarding other mobile browsers: https://tobireif.com/posts/maximum_font_size_for_emoji/

这篇关于为什么Emoji表情无法在Chrome中显示超过特定大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆