WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
REOPENED
210093
[css-flexbox] select element incorrectly allows itself to shrink to a main-size of 0, in a flex container
https://bugs.webkit.org/show_bug.cgi?id=210093
Summary
[css-flexbox] select element incorrectly allows itself to shrink to a main-si...
Carlos Alberto Lopez Perez
Reported
2020-04-06 20:43:35 PDT
Steps to reproduce: Put select element inside flexbox and apply some "pressure":
https://jsfiddle.net/Risord/dvky8w4m/4/
Actual results: Select will be collapsed all the way zero height (in demo there is a bit more space so that select is easier to see). Expected results: Select should keep it's "obvious" height just like the div (and other form inputs etc.). Chrome and Edge also handle select correct way. This very same issue has been reported (and fixed) on firefox at :
https://bugzilla.mozilla.org/show_bug.cgi?id=1591925
Chrome doesn't have this issue. This is tested by the following WPT tests (that fail on WebKit):
https://wpt.live/css/css-flexbox/select-element-zero-height-001.html
https://wpt.live/css/css-flexbox/select-element-zero-height-002.html
Attachments
Patch
(1.91 KB, patch)
2021-10-21 04:26 PDT
,
Sergio Villar Senin
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Sergio Villar Senin
Comment 1
2021-03-10 04:20:30 PST
There is a problem in the tests.
Sergio Villar Senin
Comment 2
2021-10-21 04:26:42 PDT
Created
attachment 442006
[details]
Patch
Sergio Villar Senin
Comment 3
2021-10-21 04:27:25 PDT
WPT also confirms they're working fine
https://wpt.fyi/results/css/css-flexbox?label=master&label=experimental&product=chrome&product=edge&product=firefox&product=webkitgtk&aligned
Radar WebKit Bug Importer
Comment 4
2022-05-31 09:56:21 PDT
<
rdar://problem/94158795
>
Brent Fulgham
Comment 5
2022-05-31 09:56:41 PDT
We show this as a failure in STP 146. Is this a Safari-only issue we are having?
Sam Sneddon [:gsnedders]
Comment 6
2022-06-07 08:18:45 PDT
https://wpt.fyi/analyzer?screenshot=sha1%3A7c46f91fa7586a0036094866a706ac1f220f14eb&screenshot=sha1%3A2d1204d50c43764eeae10692c176aa39fdd7ccfa
this being a few pixels makes me wonder if it's related to intrinsic margins on form elements? it's 1 pixel off vertically, which suggests it is something else, though the height of the select element seems right.
Tim Nguyen (:ntim)
Comment 7
2022-08-15 21:30:29 PDT
Intrinsic margins were removed (
https://github.com/WebKit/WebKit/pull/3205
), and this isn't fixed.
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