Description
- Breaking Within Words
https://drafts.csswg.org/css-text-4/#hyphenation
https://drafts.csswg.org/css-text-3/#hyphenation
This issue picks up from whatwg/html#6326
In HTML,
­
represents the soft hyphen character, which suggests a hyphenation opportunity.
The hyphens
property description mentions ­
, but doesn't mention the wbr
element. I think that whenever wbr
is used inside a word it should also be treated as a hyphenation opportunity. In other words, the set of things described in the spec as 'conditional' or 'soft' hyphen should include not only ­
but also wbr
.
It would probably be useful to introduce ­
and wbr
in the paragraph that defines a hyphenation opportunity. Or have a separate paragraph that defines what consitutes a 'soft-hyphen' (maybe better because you can then reference that definition from various places where conditional or soft hyphens are mentioned).
In addition to the hyphens
property this would also apply to the hyphenate-character
property (especially) and other such.
I don't expect there to be any conflict between the use of wbr
in scripts like Japanese to indicate line-break opportunities between words and its use in other languages to indicate hyphenation opportunities, since the former scripts won't apply any special hyphenation behaviours.