Skip to content

Commit 4882c7a

Browse files
alanbaradlayannevk
authored andcommitted
[line-clamp] ASSERT in RenderTreeNeedsLayoutChecker when all inline content is after the clamp point
<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. WebKit-Bug: https://bugs.webkit.org/show_bug.cgi?id=326198 WebKit-Canonical-Link: https://commits.webkit.org/322753@main
1 parent 8cef509 commit 4882c7a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Overflow: line-clamp with an inline-block in a block whose inline content is all after the clamp point</title>
4+
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#line-clamp">
5+
6+
<div style="line-clamp: 1">
7+
Line 1
8+
<div><span style="display: inline-block"></span>Line 2</div>
9+
</div>

0 commit comments

Comments
 (0)