Re: [csswg-drafts] [css-text-3] Implement or unship word-break:break-word (#2390)

> Does it mean that `word-break: break-word` is now redundant and we can simply replace it with `overflow-wrap: break-word` without changing any other things?

Yes.

> And does it mean that the following statement by MDN is no longer relevant?

> > Note: In contrast to word-break, overflow-wrap will only create a break if an entire word cannot be placed on its own line without overflowing. (Source: https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap)

For other values of the `word-break` property, that statement is true, and there's a difference between the two properties. For `word-break: break-word`, it behaves the same as `overflow-wrap: break-word`, and only takes allows breaks "if an entire word cannot be placed on its own line without overflowing".

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


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

Received on Monday, 26 April 2021 07:01:47 UTC