WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 289876
321268
height: fit-content is broken when position: fixed is used
https://bugs.webkit.org/show_bug.cgi?id=321268
Summary
height: fit-content is broken when position: fixed is used
Alex
Reported
2026-08-07 03:15:21 PDT
Create this layout: <section> I am some real content <div></div> </section> Apply these styles: section { height: fit-content; } div { height: 100%; } Everything works as expected. Now add "position: fixed" to section and its height becomes double the size because DIV adds another 100% of the height. Works properly in all other browsers, but Safari, see this Codepen:
https://codepen.io/waterplea/pen/KwaEgJE
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-08-07 17:23:19 PDT
<
rdar://problem/184375810
>
alan
Comment 2
2026-08-07 17:30:57 PDT
Thank you for filing this bug report. I think it has already progressed on trunk. Let me find the progression point.
alan
Comment 3
2026-08-07 18:06:12 PDT
Progressed at
https://commits.webkit.org/311084@main
. *** This bug has been marked as a duplicate of
bug 289876
***
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