Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 87b881998dbdefb0f2137aa3aaaa14ea009d68a3
https://github.com/WebKit/WebKit/commit/87b881998dbdefb0f2137aa3aaaa14ea009d68a3
Author: Alan Baradlay <[email protected]>
Date: 2026-08-10 (Mon, 10 Aug 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-alignment-with-block-content-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-alignment-with-block-content-ref.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-alignment-with-block-content.html
M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp
Log Message:
-----------
[block-in-inline] An excluded list marker aligns with a block level box on a
line instead of the first line of text
https://bugs.webkit.org/show_bug.cgi?id=321351
Reviewed by Antti Koivisto.
An outside list marker that takes no part in the list item's in-flow layout is
positioned after layout,
aligned with the first line of the content. setExcludedMarkerPositions finds
that line with
InlineDisplay::Line::hasContentfulInFlowBox(), which a line whose only content
is a block level box
satisfies. The marker then aligns with that box instead of with the text,
landing at the top of the
content rather than beside its first line of text.
Prefer the first line with inline content on it, and fall back to a block
content line only when there
is none: a content box whose only line carries a block level box has no other
line to align with.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-alignment-with-block-content.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-alignment-with-block-content-ref.html:
Added.
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::setExcludedMarkerPositions):
*
LayoutTests/imported/w3c/web-platform-tests/css/css-lists/outside-marker-alignment-with-block-content-expected.html:
Added.
Canonical link: https://commits.webkit.org/318908@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications