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

> If you wanted wbr to split things like URLs so that they can break across a line, but not with hyphenation, you could style the text to have hyphens:none.

`<wbr>` in a url will already allow breaking across the line with no hyphenation, without any added CSS, since it is a soft wrap opportunity. `hyphens: none` has no effect on it.

If `<wbr>` was a hyphenation opportunity (which it is not), `hypens: none` would not allow to break the line without hyphenation, it would disable the wrapping altogether. You would need to use `hyphenate-character: ""`. But again, this is unneeded, since `<wbr>` is not a hyphenation opportunity.

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


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

Received on Wednesday, 20 September 2023 10:24:49 UTC