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

I personally would like the option to disable wrapping of hyphens-in-content, because of email addresses (e.g. `an-email@example.com`) that I need to print to the page within a sentence, but have no control over the surrounding HTML (only CSS).

Given the high likelihood of the email address being copy-pasted, I cannot just replace the hyphen with a non-wrapping, visually-identical variant, and the enclosing sentence must still wrap in general, so I can't use `white-space: nowrap`, either (so in my specific case, I'd expect the automatic wrapping to happen before the email address).

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


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

Received on Friday, 24 March 2023 06:24:40 UTC