I want to prevent a line break after a hyphen that is preceded by a space.
So a string like
can be broken as
but not
I’m not sure if this can be solved by CSS spec (e.g., a new keyword for hyphens or overflow-wrap, etc.) or if it’s a browser bug: Firefox does like described by default, Chrome doesn’t.
(Demo: https://codepen.io/valtlai/pen/WLRjeo/left/?editors=1100)
Another example
String:
Allowed:
Disallowed: