Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8c7e40671460f2e5c7f71c6ce6218b4060e58fe9
https://github.com/WebKit/WebKit/commit/8c7e40671460f2e5c7f71c6ce6218b4060e58fe9
Author: Alan Baradlay <[email protected]>
Date: 2025-11-20 (Thu, 20 Nov 2025)
Changed paths:
A
LayoutTests/fast/inline/blocks-in-inline-with-legacy-line-clamp2-expected.html
A LayoutTests/fast/inline/blocks-in-inline-with-legacy-line-clamp2.html
M Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp
M
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayLine.h
Log Message:
-----------
[blocks-in-inline] LineLayout::hasEllipsisInBlockDirectionOnLastFormattedLine
should not skip collapsed block boxes
https://bugs.webkit.org/show_bug.cgi?id=302805
Reviewed by Antti Koivisto.
When line-clamp makes block boxes collapsed e.g.
<div line-clamp=1>
first line
<div>
second, collapsed line
</div>
</div>
hasEllipsisInBlockDirectionOnLastFormattedLine should return false as the last
formatted line is the line with the block content (and not the line with the
"first line" content).
Test: fast/inline/blocks-in-inline-with-legacy-line-clamp2.html
*
LayoutTests/fast/inline/blocks-in-inline-with-legacy-line-clamp2-expected.html:
Added.
* LayoutTests/fast/inline/blocks-in-inline-with-legacy-line-clamp2.html: Added.
* Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp:
(WebCore::Layout::LineBoxBuilder::build):
* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayLine.h:
Canonical link: https://commits.webkit.org/303323@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications