Re: [css-flexbox] percentage flex basis and quirks mode...

On 08/04/2015 03:22 PM, Christian Biesinger wrote:
> Hi there!
>
> So I encountered the following test case today:
>
> <div style="display: flex; flex-direction:column; border:1px solid purple;">
> <div>Header</div>
> <div style="flex:1; min-height:0;">Flexible content<br>
> </div>
> </div>
>
> We have a flex basis of 0% for the two items. Since this is quirks
> mode, the percentage resolves even though the flexbox does not have a
> definite size. The only thing that makes this work for common cases is
> min-height: auto.
>
> MY QUESTION:
> Do you think it's a problem that this doesn't really work in quirks
> mode? Maybe because min-height: auto will save the day?

Implementing the "Intrinsic Sizes" section will solve this problem.

~fantasai

Received on Sunday, 23 August 2015 14:01:17 UTC