Re: [css-multicol][css-sizing] Intrinsic Sizes of Multi-column Elements

On 03/19/2015 03:57 AM, Morten Stenshorne wrote:
> fantasai <fantasai.lists@inkedblade.net> writes:
>
>> Been looking into the intrinsic size of multi-column elements.
>> Testcase here:
>>    http://fantasai.inkedblade.net/style/tests/multi-col/intrinsic-sizing
>>
>> Here's my suggestions:
>>
>>
>> col-count only
>>    min = #cols * min-content [of contents]
>>    max = #cols * max-content
>>    Implemented by: Firefox, Chrome, IE
>
> + the column gaps ((#cols - 1) * column-gap). Yeah, makes sense.

Of course. :)

>> col-width + height
>>    min = used col-count == 1 ?
>>            min-content : column-width * used column count
>>    max = column-width * used column count
>>    Implemented by: Nobody
>
> I think you'd need to lay out to find the column count here. Sounds bad.

Yes. It makes layout engineers unhappy, but it's the only answer
that really makes sense, and it's required for a some real-world
use cases.

> And did you mean "actual column count" (not "used column count", BTW)?
> See http://dev.w3.org/csswg/css-multicol-1/#pseudo-algorithm

Ah. Yes. That's weird, used values are supposed to take
layout into account.

~fantasai

Received on Wednesday, 25 March 2015 23:38:23 UTC