Intent to Prototype: CSS `hyphenate-limit-chars` property

117 views
Skip to first unread message

Koji Ishii

unread,
Oct 14, 2022, 4:51:36 PM10/14/22
to blink-dev

Contact emails

ko...@chromium.org

Explainer

None

Specification

https://w3c.github.io/csswg-drafts/css-text-4/#propdef-hyphenate-limit-chars

Summary

This property specifies the minimum number of characters in a hyphenated word. When applying the hyphenation, the optimal minimum number of characters in the word, before the hyphen, or after the hyphen can vary by the design of the page, or by the language. This property allows the finer control of the hyphenation.



Blink component

Blink>Layout>Inline

Motivation

The finer control of the hyphenation is desired for developers wanting better typography on the web. It can also help international pages when the default settings are not optimal. Supporting this feature reduces the needs of using the JavaScript hyphenation libraries. The tracking bug has 29 stars as of Oct, 2022.



Initial public proposal



TAG review



TAG review status

Not applicable

Risks



Interoperability and Compatibility



Gecko: No signal (https://bugzilla.mozilla.org/show_bug.cgi?id=1521723)

WebKit: No signal (https://bugs.webkit.org/show_bug.cgi?id=67786) Shipped the properties in the old syntax `hyphenate-limit-{before,after}` with the `-webkit-` prefix.

Web developers: Positive (https://bugs.chromium.org/p/chromium/issues/detail?id=924069)

Other signalshttps://bugzilla.mozilla.org/show_bug.cgi?id=1521723

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

No



Debuggability

The new CSS property should be rolled out to the autocomplete functionality.



Is this feature fully tested by web-platform-tests?

No

Flag name



Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=924069

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5150761588097024

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages