WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
252046
Avoid the unnecessary setting of min-width 0 on RenderButton & RenderMenuList
https://bugs.webkit.org/show_bug.cgi?id=252046
Summary
Avoid the unnecessary setting of min-width 0 on RenderButton & RenderMenuList
Ahmad Saleem
Reported
2023-02-10 04:15:56 PST
Hi Team, While going through Blink's commit, I came across this clean-up commit: Commit -
https://chromium.googlesource.com/chromium/blink/+/930980f79f4061b999ba474313b456563c878197
WebKit Source -
https://searchfox.org/wubkat/source/Source/WebCore/rendering/RenderButton.cpp#77
&
https://searchfox.org/wubkat/source/Source/WebCore/rendering/RenderMenuList.cpp#118
I compiled it locally and also tested this WPT:
http://wpt.live/css/css-sizing/button-min-width.html
, it still passed. Just wanted to raise get input whether this clean-up is something worth doing. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
alan
Comment 1
2023-02-10 19:01:50 PST
guess now that
bug 111790
is fixed, we can indeed remove this redundant call.
Ahmad Saleem
Comment 2
2023-02-10 19:02:54 PST
(In reply to zalan from
comment #1
)
> guess now that
bug 111790
is fixed, we can indeed remove this redundant call.
Will do PR in morning. 👍
Ahmad Saleem
Comment 3
2023-02-11 03:25:00 PST
PR -
https://github.com/WebKit/WebKit/pull/9975
Radar WebKit Bug Importer
Comment 4
2023-02-17 04:16:18 PST
<
rdar://problem/105592345
>
Ahmad Saleem
Comment 5
2023-02-17 09:40:56 PST
It regresses test cases and then not match with other browser. I noticed that Blink / Chromium has various min-width hacks on their LayoutTheme for Mac-specific controls etc. They might have removed it from Blink side but kept it for Chromium theme etc. I think we needed it and Tim pointed out that it is also required by spec: ''' By default, flex items won’t shrink below their minimum content size (the length of the longest word or fixed-size element). To change this, set the min-width or min-height property. (See § 4.5 Automatic Minimum Size of Flex Items.) In the flexbox spec:
https://drafts.csswg.org/css-flexbox-1/#flex-common
''' Hence, I closed my PR and closing this since we would need it.
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