为什么连字符不能在Windows上的Chrome上运行? [英] Why don't hyphens work for Chrome on Windows?

查看:54
本文介绍了为什么连字符不能在Windows上的Chrome上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有hyphens在Android和Mac上运行,但未在PC上显示.我的PC和Mac都在运行:Chrome版本74.0.3729.157(正式版本)(64位)

I have hyphens working on Android and Mac but it isn't showing up on PC. Both my PC and Mac are on: Chrome Version 74.0.3729.157 (Official Build) (64-bit)

CSS用于网站上的标准文字换行.

The CSS is used on a website, in standard text-wrapping.

有人知道我在哪里可以找到有关为什么以及将来是否会得到支持的更多信息吗?

Does anyone know where I can find more information on why, and if it will be supported in the future?

white-space: normal;
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;

推荐答案

Chrome推出此功能时,他们这样做不支持Windows .

When Chrome shipped this feature, they did so without support for Windows.

启用稳定的CSS连字符属性

Enable CSS hyphens property on stable

此补丁可在稳定状态下启用CSS连字符属性.

This patch enables CSS hyphens property on stable.

以下值在此时有效:
- Android/Mac:手册|无|自动
-其他平台:手册|没有

Following values are valid at this point:
- Android/Mac: manual | none | auto
- Other platforms: manual | none

BUG = 605840

BUG=605840

评论网址: https://codereview.chromium.org/2342553003
Cr提交位置:refs/heads/master @ {#419461}

Review-Url: https://codereview.chromium.org/2342553003
Cr-Commit-Position: refs/heads/master@{#419461}

(重点是我的)

关于何时可以在Windows或其他平台上使用它,您可以在bug跟踪器上自行跟踪:

As for when it will be available for use on Windows or other platforms, you can track that for yourself on the bug tracker: https://bugs.chromium.org/p/chromium/issues/detail?id=652964

请注意,Microsoft Edge最近才从其原始EdgeHTML引擎移至Chromium引擎.像Firefox一样,Edge的Chromium之前版本仍然支持连字符.直到在Chromium中实现,新版本的Edge以及与Chromium支持的浏览器(如Chrome,Brave,Vivaldi等)一起都会遭受这种缺陷的困扰.

Note that Microsoft Edge only recently moved to a Chromium engine from its original EdgeHTML engine. Pre-Chromium versions of Edge still support hyphens just fine, just like Firefox. Newer versions of Edge, along with Chromium powered browsers like Chrome, Brave, Vivaldi, et al will suffer from this deficiency until it is implemented in Chromium.

将来,我建议在 https://caniuse.com 网站上检查此类支持陷阱拥有关于功能支持以及任何实现细节的详细信息作为脚注(就像在hyphens情况下一样).

In the future, I recommend checking for such support gotchas on the website https://caniuse.com - it usually has good information about feature support and any implementation details as footnotes (as it did in the case of hyphens).

这篇关于为什么连字符不能在Windows上的Chrome上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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