Свойство overflow-wrap применяется к встроенным элементам, определяя, должен ли браузер вставлять разрывы строк в неразрывную строку, чтобы текст не переполнял ее строку.
Строки могут разрываться только в обычных точках разрыва слов (например, пробел между двумя словами).
anywhere
Во избежание переполнения неразрывная строка символов - например, длинное слово или URL-адрес - может быть разбита в любой точке, если в строке нет других приемлемых точек разрыва. В точке останова символ переноса не вставляется. Возможности мягкого переноса, представленные разрывом слов, учитываются при расчете собственных размеров минимального содержимого.
break-word
То же самое, что и в любом месте, с обычно неразрывными словами, которые можно разбивать в произвольных точках, если в строке нет других приемлемых точек разрыва, но возможности мягкого переноса, представленные разрывом слова, НЕ учитываются при вычислении внутренних размеров минимального содержимого.
<p>
They say the fishing is excellent at Lake
<emclass="normal">Chargoggagoggmanchauggagoggchaubunagungamaugg</em>, though I've never been there myself.
(<code>normal</code>)
</p><p>
They say the fishing is excellent at Lake
<emclass="ow-anywhere">Chargoggagoggmanchauggagoggchaubunagungamaugg</em>, though I've never been there myself. (<code>overflow-wrap: anywhere</code>)
</p><p>
They say the fishing is excellent at Lake
<emclass="ow-break-word">Chargoggagoggmanchauggagoggchaubunagungamaugg</em>, though I've never been there myself. (<code>overflow-wrap: break-word</code>)
</p><p>
They say the fishing is excellent at Lake
<emclass="word-break">Chargoggagoggmanchauggagoggchaubunagungamaugg</em>, though I've never been there myself.
(<code>word-break</code>)
</p><p>
They say the fishing is excellent at Lake
<emclass="hyphens">Chargoggagoggmanchauggagoggchaubunagungamaugg</em>, though I've never been there myself.
(<code>hyphens</code>, without
<code>lang</code> attribute)
</p><plang="en">
They say the fishing is excellent at Lake
<emclass="hyphens">Chargoggagoggmanchauggagoggchaubunagungamaugg</em>, though I've never been there myself.
(<code>hyphens</code>, English rules)
</p><pclass="hyphens"lang="de">
They say the fishing is excellent at Lake
<emclass="hyphens">Chargoggagoggmanchauggagoggchaubunagungamaugg</em>, though I've never been there myself.
(<code>hyphens</code>, German rules)
</p>