Skip to content

Commit

Permalink
[IFC][Ruby] Fix fast/ruby/ruby-justification.html
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=264228

Reviewed by Antti Koivisto.

text-align applies to ruby interlinear annotation too (and we should only fallback to space-around when initial value is set).

* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::placeInlineAndFloatContent):

Canonical link: https://commits.webkit.org/270251@main
  • Loading branch information
alanbaradlay committed Nov 6, 2023
1 parent 1700e03 commit 4defbc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ LineContent LineBuilder::placeInlineAndFloatContent(const InlineItemRange& needs
auto runsExpandHorizontally = [&] {
if (isInIntrinsicWidthMode())
return false;
if (root().isRubyAnnotationBox()) {
if (root().isRubyAnnotationBox() && rootStyle.textAlign() == RenderStyle::initialTextAlign()) {
// FIXME: This is a workaround until after we generate inline boxes for annotation content.
return true;
}
Expand Down

0 comments on commit 4defbc8

Please sign in to comment.