Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1c6579f366d2b912f7537686cee18c8a31a852cc
https://github.com/WebKit/WebKit/commit/1c6579f366d2b912f7537686cee18c8a31a852cc
Author: Alan Baradlay <[email protected]>
Date: 2025-09-29 (Mon, 29 Sep 2025)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/select-as-flex-item-child-with-overflow-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/select-as-flex-item-child-with-overflow.html
M
Source/WebCore/layout/integration/inline/LayoutIntegrationInlineContentBuilder.cpp
Log Message:
-----------
<select> element with long <option> text causes horizontal scrolling in flex
items
https://bugs.webkit.org/show_bug.cgi?id=299698
Reviewed by Antti Koivisto.
Some forms exercise "lightweight control clipping" (hasControlClip) introduced
at 15825@main.
It essentially means we don't let their content trigger scrollable overflow.
It is usually achieved by clearing layout overflow after their layout is done
(see RenderBlock::layout)
Flex introduced a delayed variant of this "clearing overflow" behavior (only
clear when flex layout is done). This introduced a bug which partially
addressed at 299631@main for cases
when the form is also a flex item.
This change fixes cases where the form element is in the subtree of a flex item.
Test:
imported/w3c/web-platform-tests/css/css-flexbox/select-as-flex-item-child-with-overflow.html
*
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/select-as-flex-item-child-with-overflow-expected.txt:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/select-as-flex-item-child-with-overflow.html:
Added.
*
Source/WebCore/layout/integration/inline/LayoutIntegrationInlineContentBuilder.cpp:
(WebCore::LayoutIntegration::InlineContentBuilder::adjustDisplayLines const):
Canonical link: https://commits.webkit.org/300684@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