Skip to content

Commit

Permalink
Fixed what the property overflow-wrap applies to (#31727)
Browse files Browse the repository at this point in the history
Clarified what the property applies to

According to the current standard, the property is not applied to inline elements, but to text. See: https://www.w3.org/TR/css-text-3/#overflow-wrap-property
  • Loading branch information
mcmimik authored Jan 16, 2024
1 parent 04766d2 commit 30a4f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/css/overflow-wrap/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ browser-compat: css.properties.overflow-wrap

{{CSSRef}}

The **`overflow-wrap`** [CSS](/en-US/docs/Web/CSS) property applies to inline elements, setting whether the browser should insert line breaks within an otherwise unbreakable string to prevent text from overflowing its line box.
The **`overflow-wrap`** [CSS](/en-US/docs/Web/CSS) property applies to text, setting whether the browser should insert line breaks within an otherwise unbreakable string to prevent text from overflowing its line box.

{{EmbedInteractiveExample("pages/css/overflow-wrap.html")}}

Expand Down

0 comments on commit 30a4f02

Please sign in to comment.