WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
227604
`flex-basis` behaves unexpectedly with children using `max-height: fit-content;`
https://bugs.webkit.org/show_bug.cgi?id=227604
Summary
`flex-basis` behaves unexpectedly with children using `max-height: fit-content;`
Patrick Angle
Reported
2021-07-01 17:19:19 PDT
Created
attachment 432754
[details]
Screen Recording of Issue Applying a flex-basis of 100% to a children of a flex container behaves as expected when first applied, but if a media query causes that style to "go away" and come back, the results are different than when the 100% was initially applied. See attached video and reproduction page. Steps to reproduce: 1. Open the attached reproduction page. 2. Size the window to just taller than 600px (you should see four stacked colorful divs) 3. Check the box to change the flex-basis to `100%` from `inherit`. 4. Reduce the window height until the colorful boxes become boring text. 5. Resize the window back to taller than 600px. 6. Observe that only the yellow div is visible, the others are all 0px tall now, despite having the same style applied as when we started resizing the window. Reproduces on ToT WebKit. I can not reproduce this prior to
r279271
, but that issue may simply have been masking this problem.
Attachments
Screen Recording of Issue
(19.65 MB, video/quicktime)
2021-07-01 17:19 PDT
,
Patrick Angle
no flags
Details
Test Case to Reproduce Issue
(2.88 KB, text/html)
2021-07-01 17:19 PDT
,
Patrick Angle
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Patrick Angle
Comment 1
2021-07-01 17:19:49 PDT
Created
attachment 432755
[details]
Test Case to Reproduce Issue
Radar WebKit Bug Importer
Comment 2
2021-07-08 17:20:41 PDT
<
rdar://problem/80350842
>
Ahmad Saleem
Comment 3
2022-10-27 13:54:39 PDT
I am unable to reproduce this bug in Safari 16.1 using attached test case: 1) Open and resize and notice the it changes to "text" when changing height 2) Tick "flex-basis: 100%" and then resize till it becomes text. 3) and then resize and you will notice that all color divs are showing and nothing like video. It is matching with other browsers (Chrome Canary 109 and Firefox Nightly 108) and does not have any issue of not able to display other colorful divs. I am going to mark this as "RESOLVED CONFIGURATION CHANGED" (assuming fixed along the way), if it is still reproducible, please share updated test case. Thanks!
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