Re: [csswg-drafts] [css-text] Prevent line breaking after explicit hyphens (#3434)

The use-case I'm following this topic for is for <code> and <samp>, e.g. a long list of package to install. in that case breaking on hyphens gets really confusing especially when it's something people might need to type out. So I think nowrap on all hyphens already provides value there.

As for normal text formatting, it seems there's no easy solution without some context awareness, something like TeX's badness to help break very long hyphenated words, or manual markups with non-breaking hyphens.

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


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

Received on Friday, 1 November 2024 22:12:50 UTC