Skip to content

Commit

Permalink
feat: update text-wrap to be a shorthand property (#774)
Browse files Browse the repository at this point in the history
Specification: https://drafts.csswg.org/css-text-4/#propdef-text-wrap.
Make `text-wrap` a shorthand property of `text-wrap-mode` and
`text-wrap-style`. Pratically this will mean `text-wrap: auto` is valid.
  • Loading branch information
Gusted authored Oct 18, 2024
1 parent c4ac978 commit 2213097
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions css/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -10104,17 +10104,23 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/text-underline-position"
},
"text-wrap": {
"syntax": "wrap | nowrap | balance | stable | pretty",
"syntax": "<'text-wrap-mode> || <'text-wrap-style'>",
"media": "visual",
"inherited": true,
"animationType": "discrete",
"animationType": [
"text-wrap-mode",
"text-wrap-style"
],
"percentages": "no",
"groups": [
"CSS Text"
],
"initial": "wrap",
"appliesto": "textAndBlockContainers",
"computed": "asSpecified",
"computed": [
"text-wrap-mode",
"text-wrap-style"
],
"order": "perGrammar",
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/text-wrap"
Expand Down

0 comments on commit 2213097

Please sign in to comment.