[webkit-changes] [WebKit/WebKit] e8b5a9: [text-wrap-style:pretty] update params to avoid ex...

Yulun Wu noreply at github.com
Tue Feb 25 18:56:55 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e8b5a96a502af832d998c10ba8a4043acd970a73
      https://github.com/WebKit/WebKit/commit/e8b5a96a502af832d998c10ba8a4043acd970a73
  Author: Yulun Wu <yulunwu at chromium.org>
  Date:   2025-02-25 (Tue, 25 Feb 2025)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/InlineContentConstrainer.cpp

  Log Message:
  -----------
  [text-wrap-style:pretty] update params to avoid excessive hyphenation.
https://bugs.webkit.org/show_bug.cgi?id=288433
<rdar://145524087>

Reviewed by Alan Baradlay.

This PR allows for more flexibility in sizing to help pretty avoid excessive
hyphenation. Increasing the max stretch/shrink to increase acceptable range
while maintaining a strong preference for keeping line widths within:

	+textWrapPrettyStretchability / -textWrapPrettyShrinkability

Note that the current implementation has the same tolerances for shrinking
and stretching regardless of line width. Future work may adjust these
tolerances dynamically based on factors such as line width, inline item
widths, and font size.

This PR also tunes the orphan avoidance heuristic to be slightly
more aggressive.

Canonical link: https://commits.webkit.org/291082@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list