[csswg-drafts] [css-text] Hyphenation styling should apply to the wbr element (#5972)

r12a has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text] Hyphenation styling should apply to the wbr element  ==
8. Breaking Within Words
https://drafts.csswg.org/css-text-4/#hyphenation
https://drafts.csswg.org/css-text-3/#hyphenation

This issue picks up from https://github.com/whatwg/html/issues/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](https://drafts.csswg.org/css-text-3/#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.


 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5972 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 10 February 2021 07:25:51 UTC