RE: [css3-multicol] Multi-column layout with height set

Maybe I don't understand shrink-to-fit very well. I couldn't find documents for it in the w3.org, and I'm new to the ML, I'm sorry about that.

Since column-width=fixed and column-count=auto, the line 32 to 33 are used, right?
(32) N := floor((available-width + column-gap) / (column-width + column-gap));
(33) W := ((available-width + column-gap) / N) - column-gap;

What I was hoping to work is to have another "if" for when height is fixed or has max-height set.

Actually, I'm guessing Example XXII is similar to what I would want. The more content, the number of columns is increased. If Example XXII has one more line, another column is added. I can't read what you intend to do in that case in the example though.

To do that, I think, N won't be finalized until the parser reaches to the end of the content, just like the height of box won't be finalized until its content ends, right?


-----Original Message-----
From: Alex Mogilevsky [mailto:alexmog@microsoft.com] 
Sent: Saturday, August 28, 2010 1:45 AM
To: Ishii Koji; www-style@w3.org
Subject: RE: [css3-multicol] Multi-column layout with height set

Great question. It seems very reasonable to have a mode like this.

The actual calculation of number of columns is part of shrink-to-fit calculation (currently left undefined). Perhaps 'shink-to-fit' definition should include this as a special case, like this

	if height and column width are specified, srnik-to-fit width should be 
	calculated to produce exactly as many columns as needed to fit content.

Would that work?
	

-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of Ishii Koji
Sent: Friday, August 27, 2010 12:56 AM
To: www-style@w3.org
Subject: [css3-multicol] Multi-column layout with height set

On multi-column layout document, could I ask what would happen if:

* width:auto
* height:<a fixed value>
* column-count:auto
* column-width:<a fixed value>

Given the height has a value, a logical thinking gave me a thought that it would extend the number of columns as much as the content goes.

But the pseudo-algorithm
http://dev.w3.org/csswg/css3-multicol/#pseudo-algorithm
does not seem to cover such case.

Isn't this supposed to work this way?

Received on Saturday, 28 August 2010 07:48:45 UTC