r147261 broke basic vertical flexbox layout, since flexing items no lay out with height of 0 when auto heights are specified. This is obviously wrong. They should be allowed to flex down to size 0, but when they are just getting an infinite amount of space to play with (which they should when computing an auto height), they should lay out at their preferred size.
Created attachment 201718 [details] Simple reduction that illustrates the problem.
Created attachment 201719 [details] Reduction
Created attachment 201720 [details] Patch
Created attachment 201722 [details] Patch
Created attachment 201723 [details] Patch (fixed the intrinsic auto snafus)
Comment on attachment 201723 [details] Patch (fixed the intrinsic auto snafus) Do you plan to add a test case?
Created attachment 201726 [details] Patch with layout test.
Cleared the review bit, since I misunderstood what flex-basis was. The current rendering is unfortunately correct according to the latest flexbox draft. I think the spec will end up changing though. For now in WebKit only, I'm going to make flex-basis default to auto so that it behaves like the old flexbox. We can figure out what to do later when flex-basis stops churning.
*** Bug 115329 has been marked as a duplicate of this bug. ***
Created attachment 201738 [details] Patch
Created attachment 201741 [details] Patch
Attachment 201741 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/rendering/RenderFlexibleBox.cpp', u'Source/WebCore/rendering/RenderFlexibleBox.h']" exit_code: 1 Source/WebCore/rendering/RenderFlexibleBox.cpp:746: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 201744 [details] Patch
Landed in r150087.
It seems like the test added by this patch has been failing on Mac: e.g. http://build.webkit.org/results/Apple%20MountainLion%20Release%20WK1%20(Tests)/r150087%20(9969)/results.html