Implement the CSS Text 4 property `hyphenate-character`
Categories
(Core :: Layout: Text and Fonts, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox97 | --- | fixed |
People
(Reporter: jfkthame, Assigned: jfkthame)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(4 files)
https://drafts.csswg.org/css-text-4/#hyphenate-character
This is needed for writing systems that use a different hyphenation character than the default Unicode HYPHEN (or HYPHEN-MINUS), such as Canadian Syllabics (which has U+1400 CANADIAN SYLLABICS HYPHEN, "᐀").
Another use is to suppress any visible hyphen when a line is broken at a "hyphenation" position, a convention sometimes seen in languages such as Tamil (https://w3c.github.io/iip/gap-analysis/taml-gap#issue79_hyphenation).
I've filed https://github.com/w3c/csswg-drafts/issues/6887 to enquire about the status of the spec; currently webkit and blink are shipping this with a -webkit- prefix but do not appear to have the unprefixed form.
| Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
| Assignee | ||
Comment 2•4 years ago
|
||
Depends on D133889
| Assignee | ||
Comment 3•4 years ago
|
||
Depends on D133890
| Assignee | ||
Comment 4•4 years ago
|
||
Depends on D133891
Comment 9•3 years ago
|
||
Backed out 4 changesets (Bug 1746187) for causing xpcshell failures on test_css-properties-db.js.
Backout link
Push with failures
Failure Log
Also C1
Comment 10•3 years ago
|
||
Updated•3 years ago
|
Comment 11•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/aa9e1a6f799f
https://hg.mozilla.org/mozilla-central/rev/0c0310aad405
https://hg.mozilla.org/mozilla-central/rev/08f8b00bf330
https://hg.mozilla.org/mozilla-central/rev/e8c61e209539
Comment 13•3 years ago
|
||
FF97 docs work for this can be tracked in https://github.com/mdn/content/issues/11596.
Can you indicate a string that would take advantage of using the auto setting? Right now the example doesn't do anything different from just not using hyphenate-character, because I don't know what languages use different symbols and what the string would look like.
| Assignee | ||
Comment 14•3 years ago
|
||
Currently we don't implement any language-specific customizations of the auto behavior, so it'll just produce a standard hyphen.
(Note that auto is the initial (default) value of the property, so will always behave the same as not specifying it at all; generally the only reason to use auto explicitly would be to override a different inherited value.)
Comment 15•3 years ago
|
||
Thanks very much @jfkthame - docs updated appropriately.
Description
•