Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6896a514b4893e198ead7f14a973497568ee72d9
https://github.com/WebKit/WebKit/commit/6896a514b4893e198ead7f14a973497568ee72d9
Author: Alan Baradlay <[email protected]>
Date: 2025-09-05 (Fri, 05 Sep 2025)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/select-as-flex-item-with-overflow-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/select-as-flex-item-with-overflow.html
M Source/WebCore/rendering/RenderBlock.cpp
Log Message:
-----------
<select> element with long <option> text causes horizontal scrolling in grid
or flex containers
https://bugs.webkit.org/show_bug.cgi?id=284644
rdar://problem/141633685>
Reviewed by Antti Koivisto.
<select> (or any type of box with a control clip) with overflowing content
(e.g., long option text) is forced to clip its overflow by explicitly calling
clearLayoutOverflow() after layout (see RenderBlock::layout).
However, with the introduction of beginUpdateScrollInfoAfterLayoutTransaction
and endAndCommitUpdateScrollInfoAfterLayoutTransaction, this behavior became
conditional, and we forgot to handle it when the transaction ends.
This change ensures that we call clearLayoutOverflow() on such control-clip
blocks even when scrolling updates are being delayed.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/select-as-flex-item-with-overflow-expected.txt:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/select-as-flex-item-with-overflow.html:
Added.
* Source/WebCore/rendering/RenderBlock.cpp:
(WebCore::RenderBlock::endAndCommitUpdateScrollInfoAfterLayoutTransaction):
(WebCore::isDelayingUpdateScrollInfoAfterLayout):
(WebCore::RenderBlock::updateScrollInfoAfterLayout):
(WebCore::RenderBlock::layout):
Canonical link: https://commits.webkit.org/299631@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes