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

Depending on exactly what you mean, that seems wrong to me.

`<wbr>` is a soft wrap opportunity, not a hyphenation opportunity: words with a `<wbr>` in them are allowed to wrap at that point, but when they do, no hyphen (or language specific alternative marking) is inserted. So I disagree with the issue as it is stated here.

However:
* Maybe we could considered adding not just `&shy;` but also `ZWSP` and `<wbr>` to the list of things that must cause automatic hyphenation opportunities within a word to be ignored when `hyphens` is `auto`. Not sure this is right, but not sure this is wrong either, so maybe it's worth looking into.
* More to your point, if `<wbr>` either got some new HTML attribute, or some dedicated property, to make it behave like a `&shy;` rather than like a ZWSP, then we should honor as a hyphenation opportunity when it is in that state. However, no such thing exists as of now. I also don't think there's any practical way to distinguish `<wbr>` elements used within words from those used between words in order to turn this alternate behavior on automatically when `<wbr>` is in the right context. 

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5972#issuecomment-826582035 using your GitHub account


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

Received on Monday, 26 April 2021 07:29:09 UTC