Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 67bf126de00740d0aa051144d4c4a23ef7482bec
https://github.com/WebKit/WebKit/commit/67bf126de00740d0aa051144d4c4a23ef7482bec
Author: Alan Baradlay <[email protected]>
Date: 2026-09-04 (Fri, 04 Sep 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-text-indent-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-text-indent-ref.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-text-indent.html
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.h
M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp
Log Message:
-----------
[list-marker] text-indent moves the list marker with the text
https://bugs.webkit.org/show_bug.cgi?id=323448
rdar://problem/186678552
Reviewed by Antti Koivisto.
text-indent is a margin on the line box, so the line's inline start edge
already includes it and the marker hung off
that edge moved in with the text. Take the indent off first.
Test:
imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-text-indent.html
*
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-text-indent-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-text-indent-ref.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-with-text-indent.html:
Added.
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp:
(WebCore::Layout::InlineFormattingUtils::computedTextIndentForFirstLine):
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.h:
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::setExcludedMarkerPositions):
Canonical link: https://commits.webkit.org/320533@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications