Skip to content

Commit

Permalink
fix(css): overflow-wrap applies to text elements (#705)
Browse files Browse the repository at this point in the history
### Description

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

### Motivation

Aligning MDN documentation with current version of W3C standard.

### Additional details

In the [2018
version](https://www.w3.org/TR/2018/WD-css-text-3-20180920/#ref-for-inline-box%E2%91%A6)
of the "CSS Text Module Level 3", the `overflow-wrap` property was
applied to _inline boxes_. This was updated in the [2020
revision](https://www.w3.org/TR/2020/CR-css-text-3-20201222/#overflow-wrap-property),
changing its application to _text_.

Co-authored-by: Brian Thomas Smith <brian@smith.berlin>
  • Loading branch information
mcmimik and bsmth committed Feb 27, 2024
1 parent cd8d5db commit 6732de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion css/properties.json
Expand Up @@ -7566,7 +7566,7 @@
"CSS Text"
],
"initial": "normal",
"appliesto": "nonReplacedInlineElements",
"appliesto": "textElements",
"computed": "asSpecified",
"order": "uniqueOrder",
"status": "standard",
Expand Down

0 comments on commit 6732de5

Please sign in to comment.