[webkit-changes] [WebKit/WebKit] 9c6da1: [IFC][Ruby] Initial value of ruby-align is space-a...
Alan Baradlay
noreply at github.com
Thu Sep 21 07:02:12 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9c6da1f2dc8bb323d15005a0b3f1ee5fdbd1f22e
https://github.com/WebKit/WebKit/commit/9c6da1f2dc8bb323d15005a0b3f1ee5fdbd1f22e
Author: Alan Baradlay <zalan at apple.com>
Date: 2023-09-21 (Thu, 21 Sep 2023)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineLine.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineLine.h
M Source/WebCore/layout/formattingContexts/inline/ruby/RubyFormattingContext.cpp
M Source/WebCore/layout/formattingContexts/inline/ruby/RubyFormattingContext.h
Log Message:
-----------
[IFC][Ruby] Initial value of ruby-align is space-around.
https://bugs.webkit.org/show_bug.cgi?id=261822
Reviewed by Antti Koivisto.
"space-around: As for space-between except that there exists an extra justification
opportunities whose space is distributed half before and half after the ruby content"
https://drafts.csswg.org/css-ruby/#ruby-align-property
1. Move align logic to a dedicated function
2. Apply before/after spacing on the base runs on the line
* Source/WebCore/layout/formattingContexts/inline/ruby/RubyFormattingContext.cpp:
(WebCore::Layout::RubyFormattingContext::layoutRubyBaseInlineAxis):
Canonical link: https://commits.webkit.org/268250@main
More information about the webkit-changes
mailing list