W3C home > Mailing lists > Public > www-style@w3.org > February 2011

RE: [css3-multicol] pseudo-algorithm

From: Håkon Wium Lie <howcome@opera.com>
Date: Tue, 8 Feb 2011 22:44:21 +0100
Message-ID: <19793.47413.539097.7299@gargle.gargle.HOWL>
To: Alex Mogilevsky <alexmog@microsoft.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Also sprach Alex Mogilevsky:

 > Well, yet another option is to honor both column count and column
 > gap and to simply produce overflow. That may not be that bad -- in
 > a way you would treat column-gap as padding (it never shrinks and
 > it can overflow).
 > Also, if a column-min-width is eventually introduced it makes perfect sense to have 
 > 	min-content-width = min-column-width * column-count + column-gap * (column-count - 1) 
 > multicol content just can't be more narrow than that...

One problem with 'min-column-width' is that it's hard to give it the
right value. The most sensible value would probably be the longest
(unbreakable) word. Or maybe the widest image? This quickly brings us
to columns with varying widths. Hmm.

For now, I think I prefer your other solution:

 (20)    else
 (21)      N := column-count;
 (22)      W := 0;
 (23)      column-gap := (available-width/column-gap);
 (24)    fi

This will allow us to add the concept of 'min-column-width' in the


              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Tuesday, 8 February 2011 21:44:57 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:56 UTC