Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b9541659a59b8c4b9086ea1c03f91bbcf50d40b1
      
https://github.com/WebKit/WebKit/commit/b9541659a59b8c4b9086ea1c03f91bbcf50d40b1
  Author: Alan Baradlay <[email protected]>
  Date:   2026-10-05 (Mon, 05 Oct 2026)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/line-clamp/line-clamp-atomic-inline-after-clamp-point-crash.html
    M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp

  Log Message:
  -----------
  [line-clamp] ASSERT in RenderTreeNeedsLayoutChecker when all inline content 
is after the clamp point
https://bugs.webkit.org/show_bug.cgi?id=326198
<rdar://problem/189090307>

Reviewed by Antti Koivisto.

<div style="line-clamp: 1">Line 1<div><span style="display: 
inline-block"></span>Line 2</div></div>

The inner div's inline content all comes after the clamp point, so inline 
layout discards it without building a
single line and returns no layout result. Without a result, the integration 
does not know the content was
discarded and leaves the inline-block needing layout. Check the line-clamp 
budget when there is no result.

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/line-clamp/line-clamp-atomic-inline-after-clamp-point-crash.html:
 Added.
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::layout):

Canonical link: https://commits.webkit.org/322753@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to