WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
308648
Absolutely positioned elements with intrinsic height incorrectly resolve percentage heights of children
https://bugs.webkit.org/show_bug.cgi?id=308648
Summary
Absolutely positioned elements with intrinsic height incorrectly resolve perc...
Brandon
Reported
2026-02-25 09:34:38 PST
When an absolutely positioned element has an intrinsic height value (fit-content, min-content, max-content), its children with percentage heights (e.g. height: 100%) should treat the parent's height as indefinite, since the parent's height depends on the content being sized. Instead, availableLogicalHeightForPercentageComputation() was treating any non-auto height as definite, causing percentage heights to resolve against the containing block's height rather than being treated as auto. This caused HeadlessUI popover panels (which use height: fit-content on an absolutely positioned flex container) to collapse to the navbar's height instead of sizing to their content. The fix excludes intrinsic height values from the "specified height" check in availableLogicalHeightForPercentageComputation(), so they are treated as indefinite for percentage resolution of children.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-02-25 09:34:45 PST
<
rdar://problem/171179193
>
Brandon
Comment 2
2026-02-25 09:35:48 PST
Pull request:
https://github.com/WebKit/WebKit/pull/59424
EWS
Comment 3
2026-02-25 12:51:28 PST
Committed
308226@main
(823b59d3140e): <
https://commits.webkit.org/308226@main
> Reviewed commits have been landed. Closing PR #59424 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug