[css-text-4] Implement "text-wrap-style: avoid-short-last-line"
Categories
(Core :: Layout: Block and Inline, enhancement)
Tracking
()
People
(Reporter: dholbert, Unassigned)
References
(Blocks 2 open bugs)
Details
Filing this as a placeholder to track implementation of "text-wrap-style: avoid-short-last-line" (formerly named "text-wrap-style: avoid-orphans")
Spec: https://drafts.csswg.org/css-text-4/#text-wrap-style
(The spec calls this "avoid-orphans" right now, but the CSSWG resolved to rename it in https://github.com/w3c/csswg-drafts/issues/11283#issuecomment-2776875912 )
| Reporter | ||
Updated•7 months ago
|
| Reporter | ||
Comment 1•7 months ago
|
||
Current spec text:
Specifies the UA should avoid excessively short last lines, and is expected to consider more than one line when making break decisions (for example, to avoid "fixing" an orphan by making the previous line too short). The user agent may decide against improving the last line when it would make some prior line(s) substantially unbalanced. The user agent should not attempt to improve other aspects of the layout beyond what auto if those improvements come at a significant performance cost.
| Reporter | ||
Comment 2•7 months ago
|
||
From a discussion just now, I think we're assuming this is something of a prerequisite for text-wrap-style: pretty (bug 1960910), in the sense that this is strictly simpler to implement, and achieves some of the same outcomes. --> Marking dependency.
Description
•