Skip to content

Commit 2e04a04

Browse files
hollowaythecrypticacephilipp-spiess
authored
Fix text-pretty description (#2210)
Current `text-pretty` description says, > Use the `text-pretty` utility to prevent orphans (a single word on its own line) at the end of a text block: See [this recent blog post from Webkit about `text-wrap: pretty;`](https://webkit.org/blog/16547/better-typography-with-text-wrap-pretty/) and in particular, > Because of the way Chrome’s implementation of pretty has been taught, a lot of web developers expect this value is only supposed to prevent short last lines. But that was never the intention. In fact, the CSS Working Group defined a different value for such a purpose. It was [just renamed](w3c/csswg-drafts#11283) last week to `text-wrap: avoid-short-last-lines`. So it seems an updated description is needed and this PR has a first attempt. --------- Co-authored-by: Jordan Pittman <[email protected]> Co-authored-by: Philipp Spiess <[email protected]>
1 parent efa60f5 commit 2e04a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/text-wrap.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ For performance reasons browsers limit text balancing to blocks that are ~6 line
111111

112112
### Pretty text wrapping
113113

114-
Use the `text-pretty` utility to prevent orphans (a single word on its own line) at the end of a text block:
114+
Use the `text-pretty` utility to prefer better text wrapping and layout at the expense of speed. Behavior varies across browsers but often involves approaches like preventing orphans (a single word on its own line) at the end of a text block:
115115

116116
<Figure>
117117

0 commit comments

Comments
 (0)