Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a52d29c1822b7055842eb941876e54df00e2c7fa
      
https://github.com/WebKit/WebKit/commit/a52d29c1822b7055842eb941876e54df00e2c7fa
  Author: Alan Baradlay <za...@apple.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M LayoutTests/fast/ruby/ruby-expansion-cjk-expected.html
    M LayoutTests/fast/ruby/ruby-justification-expected.html
    A 
LayoutTests/fast/text/ideographic-content-with-pre-wrap-and-justify-expected.html
    A LayoutTests/fast/text/ideographic-content-with-pre-wrap-and-justify.html
    M Source/WebCore/layout/formattingContexts/inline/InlineContentAligner.cpp

  Log Message:
  -----------
  text-align: justify does not work as expected when used with white-space: 
pre-wrap with ideographic text
https://bugs.webkit.org/show_bug.cgi?id=294904
<rdar://problem/154211168>

Reviewed by Antti Koivisto.

Remove legacy behavior of not justifying ideographic content.

While the spec allows us to skip applying 'justify' to content with preserved 
whitespace, we generally apply it anyway to most content because 
'hangingTrailingWhitespaceLength' is usually true (whenever there's a 
whitespace). This change ensures that content with
no whitespace (very common with ideographic content) gets the same treatment.

* LayoutTests/fast/ruby/ruby-expansion-cjk-expected.html:
* LayoutTests/fast/ruby/ruby-justification-expected.html:
* 
LayoutTests/fast/text/ideographic-content-with-pre-wrap-and-justify-expected.html:
 Added.
* LayoutTests/fast/text/ideographic-content-with-pre-wrap-and-justify.html: 
Added.
* Source/WebCore/layout/formattingContexts/inline/InlineContentAligner.cpp:
(WebCore::Layout::computedExpansions):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to