WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
146020
min-width/height should default to auto for flexbox items
https://bugs.webkit.org/show_bug.cgi?id=146020
Summary
min-width/height should default to auto for flexbox items
Sergio Villar Senin
Reported
2015-06-16 08:40:37 PDT
As stated here
http://dev.w3.org/csswg/css-flexbox/#min-size-auto
Attachments
Patch
(53.41 KB, patch)
2015-06-24 11:23 PDT
,
Sergio Villar Senin
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews102 for mac-mavericks
(614.03 KB, application/zip)
2015-06-24 11:57 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews105 for mac-mavericks-wk2
(589.24 KB, application/zip)
2015-06-24 12:06 PDT
,
Build Bot
no flags
Details
Patch
(57.73 KB, patch)
2015-06-26 09:16 PDT
,
Sergio Villar Senin
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews100 for mac-mavericks
(545.00 KB, application/zip)
2015-06-26 09:55 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews106 for mac-mavericks-wk2
(662.38 KB, application/zip)
2015-06-26 10:02 PDT
,
Build Bot
no flags
Details
Patch
(57.84 KB, patch)
2015-07-01 07:42 PDT
,
Sergio Villar Senin
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews102 for mac-mavericks
(549.01 KB, application/zip)
2015-07-01 08:21 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews104 for mac-mavericks-wk2
(588.33 KB, application/zip)
2015-07-01 08:26 PDT
,
Build Bot
no flags
Details
Patch
(57.86 KB, patch)
2015-07-02 00:17 PDT
,
Sergio Villar Senin
no flags
Details
Formatted Diff
Diff
Patch for landing
(57.33 KB, patch)
2015-09-10 03:55 PDT
,
Sergio Villar Senin
no flags
Details
Formatted Diff
Diff
Patch for landing v2
(57.35 KB, patch)
2015-09-10 04:02 PDT
,
Sergio Villar Senin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Sergio Villar Senin
Comment 1
2015-06-16 08:41:48 PDT
We need to merge these 3: -
https://crrev.com/193665
-
https://crrev.com/194062
-
https://crrev.com/195930
and part of this one:
https://crrev.com/194887
Sergio Villar Senin
Comment 2
2015-06-24 11:23:51 PDT
Created
attachment 255497
[details]
Patch
Darin Adler
Comment 3
2015-06-24 11:29:37 PDT
Comment on
attachment 255497
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=255497&action=review
I’m not the right reviewer for this. Might need to be Hyatt.
> Source/WebCore/css/CSSComputedStyleDeclaration.cpp:1857 > +inline static bool isFlexOrGrid(Node* element)
Type could be ContainerNode*.
Build Bot
Comment 4
2015-06-24 11:57:31 PDT
Comment on
attachment 255497
[details]
Patch
Attachment 255497
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/6454581009580032
New failing tests: mathml/presentation/menclose-notation-default-longdiv.html
Build Bot
Comment 5
2015-06-24 11:57:33 PDT
Created
attachment 255499
[details]
Archive of layout-test-results from ews102 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-mavericks Platform: Mac OS X 10.9.5
Build Bot
Comment 6
2015-06-24 12:06:55 PDT
Comment on
attachment 255497
[details]
Patch
Attachment 255497
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.appspot.com/results/6120144791142400
New failing tests: mathml/presentation/menclose-notation-default-longdiv.html
Build Bot
Comment 7
2015-06-24 12:06:58 PDT
Created
attachment 255500
[details]
Archive of layout-test-results from ews105 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Sergio Villar Senin
Comment 8
2015-06-26 09:16:47 PDT
Created
attachment 255639
[details]
Patch This new version ensures that the new policy is not applied to RenderFlexibleBox derived classes. Also includes the removal of some hacks added to properly shrink some elements
Build Bot
Comment 9
2015-06-26 09:55:29 PDT
Comment on
attachment 255639
[details]
Patch
Attachment 255639
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/5371899748024320
New failing tests: fast/css/auto-min-size.html
Build Bot
Comment 10
2015-06-26 09:55:33 PDT
Created
attachment 255642
[details]
Archive of layout-test-results from ews100 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews100 Port: mac-mavericks Platform: Mac OS X 10.9.5
Build Bot
Comment 11
2015-06-26 10:02:02 PDT
Comment on
attachment 255639
[details]
Patch
Attachment 255639
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.appspot.com/results/5107354190217216
New failing tests: fast/css/auto-min-size.html
Build Bot
Comment 12
2015-06-26 10:02:06 PDT
Created
attachment 255644
[details]
Archive of layout-test-results from ews106 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Sergio Villar Senin
Comment 13
2015-07-01 07:42:15 PDT
Created
attachment 255918
[details]
Patch
Build Bot
Comment 14
2015-07-01 08:21:19 PDT
Comment on
attachment 255918
[details]
Patch
Attachment 255918
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/5074698748559360
New failing tests: fast/css/auto-min-size.html
Build Bot
Comment 15
2015-07-01 08:21:23 PDT
Created
attachment 255921
[details]
Archive of layout-test-results from ews102 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-mavericks Platform: Mac OS X 10.9.5
Build Bot
Comment 16
2015-07-01 08:26:26 PDT
Comment on
attachment 255918
[details]
Patch
Attachment 255918
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.appspot.com/results/5477820083994624
New failing tests: fast/css/auto-min-size.html
Build Bot
Comment 17
2015-07-01 08:26:29 PDT
Created
attachment 255922
[details]
Archive of layout-test-results from ews104 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Sergio Villar Senin
Comment 18
2015-07-02 00:17:55 PDT
Created
attachment 255998
[details]
Patch
Sergio Villar Senin
Comment 19
2015-07-07 11:32:36 PDT
Hyatt maybe?
Dave Hyatt
Comment 20
2015-08-31 13:49:03 PDT
Comment on
attachment 255998
[details]
Patch r=me
Sergio Villar Senin
Comment 21
2015-09-09 00:37:32 PDT
Committed
r189536
: <
http://trac.webkit.org/changeset/189536
>
Alex Christensen
Comment 22
2015-09-09 08:35:38 PDT
This caused 4 tests to fail everywhere on mac. Please check before relanding. Before:
https://build.webkit.org/results/Apple%20Yosemite%20Release%20WK2%20(Tests)/r189535%20(8182)/results.html
After:
https://build.webkit.org/results/Apple%20Yosemite%20Release%20WK2%20(Tests)/r189536%20(8183)/results.html
Newly failing tests: fast/css/auto-min-size.html +fast/forms/menulist-narrow-width.html +fast/replaced/width100percent-menulist.html +fast/replaced/width100percent-searchfield.html
WebKit Commit Bot
Comment 23
2015-09-09 08:39:50 PDT
Re-opened since this is blocked by
bug 149002
Sergio Villar Senin
Comment 24
2015-09-10 03:55:34 PDT
Created
attachment 260916
[details]
Patch for landing Removed some code specific for the gtk port that somehow got into the final patch for review
Sergio Villar Senin
Comment 25
2015-09-10 04:02:16 PDT
Created
attachment 260917
[details]
Patch for landing v2 Removed some code specific for the gtk port that somehow got into the final patch for review
Sergio Villar Senin
Comment 26
2015-09-10 04:16:00 PDT
Comment on
attachment 260917
[details]
Patch for landing v2 Do not set r? as it was reviewed previously
Sergio Villar Senin
Comment 27
2015-09-10 04:58:42 PDT
Committed
r189567
: <
http://trac.webkit.org/changeset/189567
>
Simon Fraser (smfr)
Comment 28
2016-05-02 17:27:15 PDT
This broke various internal tools at Apple, and other companies, which now expand a flex box vertically instead of showing overflow-scroll. Were there any follow-up fixes in Blink?
Sergio Villar Senin
Comment 29
2016-05-03 07:00:02 PDT
(In reply to
comment #28
)
> This broke various internal tools at Apple, and other companies, which now > expand a flex box vertically instead of showing overflow-scroll. Were there > any follow-up fixes in Blink?
Flexbox code in Blink has been subject to tons of changes lately. I can try to bisect the fix for that issue but I'd need a reduced test case. Could you try to cook one?
Sergio Villar Senin
Comment 30
2016-05-03 07:05:02 PDT
(In reply to
comment #28
)
> This broke various internal tools at Apple, and other companies, which now > expand a flex box vertically instead of showing overflow-scroll. Were there > any follow-up fixes in Blink?
BTW just in case, as the ChangeLog says, many use cases behave the same just by adding min-width|height: 0px which was the previous default value.
Jon Lee
Comment 31
2016-05-16 13:53:56 PDT
Examples appear to include: 156786, 157698
Jon Lee
Comment 32
2016-05-16 14:08:11 PDT
Of the other bugs I attached, it looks like we definitely behave differently from Firefox and Chrome with 156786 and 157678. The others might be evangelism or behaves correctly.
Radar WebKit Bug Importer
Comment 33
2016-08-29 13:57:13 PDT
<
rdar://problem/28062217
>
Ilya Streltsyn
Comment 34
2017-11-30 07:53:29 PST
It seems that under the following conditions: - the flex container has flex-direction:column and overflow:auto/scroll; - the flex item is a flex container itself with flex-direction:row the default min-height:auto still doesn't work correctly (works as 0 instead of the content height). Here is a small self-explaining testcase demonstrating the issue:
https://jsfiddle.net/9xzhb6m4/2/
Darin Adler
Comment 35
2017-11-30 09:15:23 PST
(In reply to Ilya Streltsyn from
comment #34
)
> It seems that under the following conditions: > > - the flex container has flex-direction:column and overflow:auto/scroll; > - the flex item is a flex container itself with flex-direction:row > > the default min-height:auto still doesn't work correctly (works as 0 instead > of the content height). Here is a small self-explaining testcase > demonstrating the issue:
https://jsfiddle.net/9xzhb6m4/2/
Would you be willing to file a new bug report? Or is there some reason that a comment on this existing report is a better way to handle this?
Jon Lee
Comment 36
2017-12-01 09:03:33 PST
(In reply to Ilya Streltsyn from
comment #34
)
> It seems that under the following conditions: > > - the flex container has flex-direction:column and overflow:auto/scroll; > - the flex item is a flex container itself with flex-direction:row > > the default min-height:auto still doesn't work correctly (works as 0 instead > of the content height). Here is a small self-explaining testcase > demonstrating the issue:
https://jsfiddle.net/9xzhb6m4/2/
Based on the jsfiddle, it looks like we currently agree with Chrome but disagree with Firefox. Ilya, please file a new bug citing this example.
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