Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a48d79e495ffd3cc842766164c6baed0d6e8e2f8
https://github.com/WebKit/WebKit/commit/a48d79e495ffd3cc842766164c6baed0d6e8e2f8
Author: Claudio Saavedra <[email protected]>
Date: 2026-10-14 (Wed, 14 Oct 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-text-combine-upright.html
M Source/WebCore/rendering/RenderListOutsideMarker.cpp
Log Message:
-----------
[list-marker] Outside marker content is misplaced in vertical writing modes
https://bugs.webkit.org/show_bug.cgi?id=327448
Reviewed by Alan Baradlay.
In vertical writing modes inline layout centers the marker box on the
line's central baseline using the marker's own logical height, but
RenderListOutsideMarker::layoutContentContainer() offsets the content box
by the primary font's central ascent instead, so the content's baseline
misses the line's by half the difference between the two heights. A
content marker's box is as tall as its line, which puts it 1px off on
GTK/WPE; a list-style-type marker's box uses the rounded font height, which
puts it half a pixel off on Cocoa, where font metrics are fractional. The
fuzzy tag added in 323582@main only covered the latter.
Center the content box on the marker instead, and drop the fuzzy tag.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/marker-text-combine-upright.html:
* Source/WebCore/rendering/RenderListOutsideMarker.cpp:
(WebCore::RenderListOutsideMarker::layoutContentContainer):
Canonical link: https://commits.webkit.org/323721@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications