NEW 281973
[css-flexbox] Content disappears when combining flex-direction: column, flex: 1 1 0, and overflow: hidden
https://bugs.webkit.org/show_bug.cgi?id=281973
Summary [css-flexbox] Content disappears when combining flex-direction: column, flex:...
Zack Pyle
Reported 2024-10-23 05:59:48 PDT
When combining the following CSS properties on a flex container and its children: Parent: flex-direction: column Children: flex: 1 1 0 Children: overflow: hidden or overflow: clip The flex items completely disappear in Safari, while displaying correctly in other browsers. Expected result: Cards should be visible and expand to fill available space while maintaining their content height Actual result: - Cards completely disappear in Safari - Works correctly in Chrome and Firefox Workarounds: - Using flex: 1 1 auto instead of flex: 1 1 0 Live demo: https://codepen.io/pyledigital/full/Jjgrxrm Steps to reproduce: 1. Open the Codepen in Safari and reduce screen width to less than 800px 2. Note that the cards are not visible once it flips to flex-direction: column 3. Open the same Codepen in Chrome or Firefox to see the expected behavior The issue occurs when combining these properties: .flex-parent { display: flex; flex-direction: column; } .card { display: flex; flex-direction: column; flex: 1 1 0; overflow: hidden; /* or clip */ }
Attachments
rendering in safari, firefox, chrome (3.35 MB, image/png)
2024-11-07 22:30 PST, Karl Dubost
no flags
Zack Pyle
Comment 1 2024-10-23 09:29:52 PDT
Confirmed happens in both Safari 17 & 18, so not a new bug
Radar WebKit Bug Importer
Comment 2 2024-10-30 06:00:15 PDT
Karl Dubost
Comment 3 2024-11-07 22:30:08 PST
Created attachment 473182 [details] rendering in safari, firefox, chrome Safari Technology Preview 206 20621.1.3.21.1 Firefox Nightly 134.0a1 13424.11.7 Google Chrome Canary 132.0.6825.0 6825.0
Note You need to log in before you can comment on or make changes to this bug.