Is there a difference between overflow-wrap: break-words
and word-break: break-words
?
I read here and there that there is no difference, but my tests show that there is:
<!-- actually break words -->
<table style="width: 100px; border: 1px solid red">
<tr>
<td>
<div style="word-break: break-word">
hdsqdhsqydhsqgydqgsydgysqgydsqgydsgqydygsqgydsqgy
</div>
</td>
</tr>
</table>
<!-- do not break words -->
<table style="width: 100px; border: 1px solid red">
<tr>
<td>
<div style="overflow-wrap: break-word">
hdsqdhsqydhsqgydqgsydgysqgydsqgydsgqydygsqgydsqgy
</div>
</td>
</tr>
</table>
Why does the first case work as intended and not the second?