-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Force breaks on extremely long words in comments #7163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force breaks on extremely long words in comments #7163
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7163 +/- ##
============================================
- Coverage 50.84% 50.75% -0.09%
+ Complexity 24545 24479 -66
============================================
Files 1585 1581 -4
Lines 93796 93578 -218
Branches 1354 1353 -1
============================================
- Hits 47687 47492 -195
+ Misses 46109 46086 -23
|
|
break-all breaks all words, hence this is needed: |
|
@jancborchardt Are According to Can I Use Can I Use also says that |
|
@danxuliu try out with a longer sentence which has one really long word but a lot of regular, non-overflowing ones in it. With break-all, the regular ones will also be broken. (Yeah it's a mess) |
Ugh, you are totally right. Should we use |
|
@danxuliu I think we need both, see https://css-tricks.com/almanac/properties/w/word-break/ |
Mmm, I have tested it in Firefox and Chromium and it seems that, in practice, |
|
@danxuliu do you have a solution which both:
If so, we should use that. :) If not we need to decide what is more important to us. (I would say not messing with regular words is more important.) |
If not broken extremely long words overflow their container. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
12b1be5 to
5d85af7
Compare
Me? I am just a CSS wannabe :-P You are the master here ;-) Anyway, based on all of the above (and for latin-based scripts; I do not know about others, sorry :-( ), the summary is:
I totally agree with not messing with regular words. Therefore I guess that the winner is The only value that I can see in |
jancborchardt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good - we can always enhance as we go forward. Especially as I hope CSS will improve here :D


If not broken extremely long words overflow their container; I have added the break rule to the whole comment, so it will be used too in author names (even if it is highly unlikely that any author name would be long enough to overflow...).
Before:

After:
