Bug 307965

Summary: Make Block and inline-block have the same baseline when `overflow: hidden`
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: Layout and RenderingAssignee: alan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, karlcow, koivisto, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar, WPTImpact
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
[fast-cq]Patch none

Ahmad Saleem
Reported 2026-02-15 19:48:41 PST
Hi Team, While looking through Safari specific failures on WPT, I noticed that we fail following: WPT Test Case - https://wpt.fyi/results/css/CSS2/linebox/baseline-block-with-overflow-001.html?label=master&label=experimental&aligned&q=safari%3Afail WPT Test Case Live Link - https://wpt.live/css/CSS2/linebox/baseline-block-with-overflow-001.html ^ Only Safari fails and even STP237 as well. Blink Commit - https://chromium-review.googlesource.com/c/chromium/src/+/1701618 *** CSS2 defines[1] the baseline of an 'inline-block' is the bottom margin edge if its `overflow` property is other than `visible`. [1] https://drafts.csswg.org/css2/visudet.html#propdef-vertical-align *** Just raising, so we can fix it. Thanks!
Attachments
[fast-cq]Patch (3.95 KB, patch)
2026-02-17 09:35 PST, alan
no flags
alan
Comment 1 2026-02-17 09:35:30 PST
Created attachment 478389 [details] [fast-cq]Patch
EWS
Comment 2 2026-02-17 12:31:17 PST
Committed 307718@main (9a017d08c0cd): <https://commits.webkit.org/307718@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 478389 [details].
Radar WebKit Bug Importer
Comment 3 2026-02-17 12:32:13 PST
Note You need to log in before you can comment on or make changes to this bug.