Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d1ac75f543e316ef4ac4fae60cff97829680f7e9
https://github.com/WebKit/WebKit/commit/d1ac75f543e316ef4ac4fae60cff97829680f7e9
Author: Alan Baradlay <[email protected]>
Date: 2026-10-03 (Sat, 03 Oct 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/line-clamp/line-clamp-dynamic-width-change-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/line-clamp/line-clamp-dynamic-width-change.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/line-clamp/reference/line-clamp-dynamic-width-change-ref.html
M Source/WebCore/page/LocalFrameViewLayoutContext.cpp
Log Message:
-----------
[line-clamp] Changing the width of a line-clamp container shows the lines
past the clamp point
https://bugs.webkit.org/show_bug.cgi?id=325509
<rdar://problem/188596942>
Reviewed by Antti Koivisto.
<div id=container style="line-clamp: 2; width: 300px"><div>Line
1</div><div>Line 2</div><div>Line 3</div></div>
<script>document.body.offsetHeight; container.style.width = "200px";</script>
Line 3 should stay hidden after the width change.
Ensure that the remaining budget goes back to the parent state, the same way
the legacy line clamp's does.
Tests:
imported/w3c/web-platform-tests/css/css-overflow/line-clamp/line-clamp-dynamic-width-change.html
imported/w3c/web-platform-tests/css/css-overflow/line-clamp/reference/line-clamp-dynamic-width-change-ref.html
*
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/line-clamp/line-clamp-dynamic-width-change-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/line-clamp/line-clamp-dynamic-width-change.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/line-clamp/reference/line-clamp-dynamic-width-change-ref.html:
Added.
* Source/WebCore/page/LocalFrameViewLayoutContext.cpp:
(WebCore::LocalFrameViewLayoutContext::popLayoutState):
Canonical link: https://commits.webkit.org/322600@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications