Closed Bug 1746187 Opened 3 years ago Closed 3 years ago

Implement the CSS Text 4 property `hyphenate-character`

Categories

(Core :: Layout: Text and Fonts, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
97 Branch
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: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a4375ff93414
Add CSS support for the hyphenate-character property. r=emilio
https://hg.mozilla.org/integration/autoland/rev/6733677ad35d
Implement rendering support for hyphenate-character. r=emilio
https://hg.mozilla.org/integration/autoland/rev/e3fce2273109
Add WPT reftests for hyphenate-character property. r=emilio
https://hg.mozilla.org/integration/autoland/rev/fa4f889dd0d3
Add parsing tests for hyphenate-character property. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/32101 for changes under testing/web-platform/tests
Upstream PR was closed without merging
Backout by mlaza@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fd4519cca258
Backed out 4 changesets for causing xpcshell failures on test_css-properties-db.js.

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

Flags: needinfo?(jfkthame)
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/aa9e1a6f799f
Add CSS support for the hyphenate-character property. r=emilio
https://hg.mozilla.org/integration/autoland/rev/0c0310aad405
Implement rendering support for hyphenate-character. r=emilio
https://hg.mozilla.org/integration/autoland/rev/08f8b00bf330
Add WPT reftests for hyphenate-character property. r=emilio
https://hg.mozilla.org/integration/autoland/rev/e8c61e209539
Add parsing tests for hyphenate-character property. r=emilio
Upstream PR merged by moz-wptsync-bot

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.

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.)

Flags: needinfo?(jfkthame)

Thanks very much @jfkthame - docs updated appropriately.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: