WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
233263
When all elements in flexbox main axis are flexed, there should be no overflow in that axis.
https://bugs.webkit.org/show_bug.cgi?id=233263
Summary
When all elements in flexbox main axis are flexed, there should be no overflo...
Nige White
Reported
2021-11-17 10:46:48 PST
Created
attachment 444536
[details]
Bug page Ensure scrollbars are visible if you use OSX. Using the attached HTML file, you can adjust the height of the '.container' element in 0.01px increments using the slider. At just a few particular heights, a vertical scrollbar appears. Given that all the elements in the vertical flexbox are flex-grow:1 and flex-basis:0%, and do not violate any minHeight constraints, there should be no overflow. Regardless of the maths involved and remainders after calculation of the child heights, requesting that all children are flexed, and no height constraints implicitly specifies that there should be no vertical overflow. I have currently found height 600.47, but there are many other "breakpoints" where it creates overflow.
Attachments
Bug page
(1.54 KB, text/html)
2021-11-17 10:46 PST
,
Nige White
no flags
Details
Screenshot of the problem
(141.00 KB, image/png)
2021-11-23 06:59 PST
,
Nige White
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Nige White
Comment 1
2021-11-23 06:59:37 PST
Created
attachment 445028
[details]
Screenshot of the problem
Radar WebKit Bug Importer
Comment 2
2021-11-24 10:47:20 PST
<
rdar://problem/85731339
>
Ahmad Saleem
Comment 3
2022-10-27 14:00:14 PDT
I am still able to reproduce this bug in Safari 16.1 and on certain heights from slider, it does show "vertical" scrollbar and so does "Chrome Canary 109", I am not able to reproduce this in Firefox (it could be due to -webkit- prefixes) but moving slider does not show "vertical scrollbar" though. Just wanted to share updated results. Thanks!
Nige White
Comment 4
2022-10-27 23:04:38 PDT
I think Firefox have fixed it. I cannot find any container height which produces a scrollbar on Firefox. I cannot find the original bug report I filed with them. Searching for "flexbox" and "overflow" and "scrollbars" shows a lot of bugs being fixed though. Chrome still shows a scrollbar at certain heights. 601.23px for example.
Nige White
Comment 5
2022-10-27 23:23:24 PDT
This is the Chromium report:
https://bugs.chromium.org/p/chromium/issues/detail?id=1270275
Nige White
Comment 6
2025-12-05 02:43:42 PST
Still shows a scrollber at certain container heights when all child items are willing to shrink.
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