Intent to implement & ship: CSS hyphenate-limit-chars property
84 views
Skip to first unread message
Jonathan Kew
unread,
Jan 21, 2025, 8:53:39 AM1/21/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-pl...@mozilla.org
Summary: When applying automatic hyphenation, the optimal minimum number
of characters that should be required 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 finer grained control of hyphenation; in
particular, it enables authors to "dial back" the browser's readiness to
hyphenate so that it is used more sparingly.
I am aiming to implement & ship support for this property as of Firefox
136, or possibly 137 in case of complications.
Other browsers:
Blink:
Shipped since Chrome 109
WebKit:
No signal (https://bugs.webkit.org/show_bug.cgi?id=67786)
(Shipping old syntax properties
`hyphenate-limit-{before,after}` with the `-webkit-` prefix.)
Mozilla reftests:
layout/reftests/text/auto-hyphenation-* tests
Many of these tests have updated behavior, since
hyphenate-limit-chars prevents use of some of the potential hyphenation
points.
(Not in WPT because the details of where hyphenation can occur
are implementation-dependent; there are no precise rules or list of
supported languages specified.)