W3C home > Mailing lists > Public > www-style@w3.org > March 2015

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 25 Mar 2015 16:37:51 -0700
Message-ID: <551346CF.4080909@inkedblade.net>
To: www-style@w3.org
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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC