Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9a017d08c0cd199e1b14ea6d15d69c8869897c5c
https://github.com/WebKit/WebKit/commit/9a017d08c0cd199e1b14ea6d15d69c8869897c5c
Author: Alan Baradlay <[email protected]>
Date: 2026-02-17 (Tue, 17 Feb 2026)
Changed paths:
M LayoutTests/TestExpectations
M Source/WebCore/layout/integration/LayoutIntegrationBoxGeometryUpdater.cpp
Log Message:
-----------
Make Block and inline-block have the same baseline when `overflow: hidden`
https://bugs.webkit.org/show_bug.cgi?id=307965
Reviewed by Antti Koivisto.
Just because a child box's baseline is its margin box, it does not necessarily
mean it is not a
valid baseline.
e.g.
<div style="display: inline-block">
<div style="overflow: hidden">text</div>
</div>
Due to 'overflow: hidden', the inner box's baseline is its margin box and not
'text',
but it is still a valid baseline candidate box when computing the baseline for
outer.
* LayoutTests/TestExpectations:
* Source/WebCore/layout/integration/LayoutIntegrationBoxGeometryUpdater.cpp:
(WebCore::LayoutIntegration::lastInflowBoxBaseline):
Do not use 'shouldUseMarginBoxAsBaseline' to decided whether a child box is a
candidate
for baseline computation.
Canonical link: https://commits.webkit.org/307718@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications