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

I don't think the definition of `keep-all`, as currently written, calls for that.
> implicit [soft wrap opportunities](https://drafts.csswg.org/css-text-4/#soft-wrap-opportunity) between [typographic letter units](https://drafts.csswg.org/css-text-4/#typographic-letter-unit) (or other [typographic character units](https://drafts.csswg.org/css-text-4/#typographic-character-unit) belonging to the NU, AL, AI, or ID Unicode line breaking classes [[UAX14]](https://drafts.csswg.org/css-text-4/#biblio-uax14)) are suppressed

But it may be argued that in spirit, this is a break within a word, and that `keep-all` should handle that.

I think we have now several candidates, at least:
* adjust `word-break: keep-all` to suppress breaks around explicit hyphens within words
* add a keyword to`hyphens` (`nowrap`?)
* add a keyword to `work-break` (`no-hyphens`?)
* add a keyword to `line-break` (`no-hyphens`?)
* add a new keyword to `hyphenate-limit-chars` to make it apply to breaks after explicit hyphens, not just inserted ones

Thinking of this in terms of cascading and inheritance, which of these properties would be the best fit?

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


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

Received on Friday, 26 July 2024 14:20:27 UTC