Open Bug 1965551 Opened 7 months ago Updated 2 days ago

[css-text-4] Implement "text-wrap-style: avoid-short-last-line"

Categories

(Core :: Layout: Block and Inline, enhancement)

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 )

Summary: text-wrap-style: avoid-short-last-line → [css-text-4] Implement "text-wrap-style: avoid-short-last-line"

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.

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.

Blocks: 1960910
You need to log in before you can comment on or make changes to this bug.