Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f692b8e75f587db273ca9a8a67806e2931a68559
https://github.com/WebKit/WebKit/commit/f692b8e75f587db273ca9a8a67806e2931a68559
Author: Charlie Wolfe <[email protected]>
Date: 2026-07-30 (Thu, 30 Jul 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/alignment/flex-align-baseline-flex-002-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/alignment/flex-align-baseline-grid-002-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/alignment/flex-align-baseline-grid-003-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-align-baseline-flex-002-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-align-baseline-grid-002-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/alignment/grid-align-baseline-grid-003-expected.txt
M
LayoutTests/platform/glib/fast/css/vertical-text-overflow-ellipsis-text-align-center-mixed-expected.txt
M
LayoutTests/platform/glib/fast/css/vertical-text-overflow-ellipsis-text-align-justify-mixed-expected.txt
M
LayoutTests/platform/glib/fast/css/vertical-text-overflow-ellipsis-text-align-left-mixed-expected.txt
M
LayoutTests/platform/glib/fast/css/vertical-text-overflow-ellipsis-text-align-right-mixed-expected.txt
M
LayoutTests/platform/ios/fast/css/vertical-text-overflow-ellipsis-text-align-justify-mixed-expected.txt
M
LayoutTests/platform/ios/fast/css/vertical-text-overflow-ellipsis-text-align-left-mixed-expected.txt
M
LayoutTests/platform/ios/fast/css/vertical-text-overflow-ellipsis-text-align-right-mixed-expected.txt
M
LayoutTests/platform/mac/fast/css/vertical-text-overflow-ellipsis-text-align-center-mixed-expected.txt
M
LayoutTests/platform/mac/fast/css/vertical-text-overflow-ellipsis-text-align-justify-mixed-expected.txt
M
LayoutTests/platform/mac/fast/css/vertical-text-overflow-ellipsis-text-align-left-mixed-expected.txt
M
LayoutTests/platform/mac/fast/css/vertical-text-overflow-ellipsis-text-align-right-mixed-expected.txt
M Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp
Log Message:
-----------
[css-inline] Preserve fractional central baselines for atomic inlines
https://bugs.webkit.org/show_bug.cgi?id=320613
rdar://183584888
Reviewed by Alan Baradlay.
CSS requires an atomic inline's synthesized central baseline to be halfway
between its line-over and
line-under margin edges. Rounding that midpoint for odd-sized boxes loses the
fractional component
and causes one-pixel baseline alignment errors in flex and grid layouts.
Preserve the fractional midpoint without changing the box's logical height.
https://drafts.csswg.org/css-inline-3/#baseline-synthesis-box
https://www.w3.org/TR/css-writing-modes-3/#replaced-baselines
*
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/alignment/flex-align-baseline-flex-002-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/alignment/flex-align-baseline-grid-002-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/alignment/flex-align-baseline-grid-003-expected.txt:
* Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp:
(WebCore::Layout::LineBoxBuilder::adjustIdeographicBaselineIfApplicable):
Canonical link: https://commits.webkit.org/318268@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications