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 21:25:59 +0100
Message-ID: <19793.42711.668519.131052@gargle.gargle.HOWL>
To: Alex Mogilevsky <alexmog@microsoft.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Also sprach Alex Mogilevsky:

 > I propose that the branch that lines 20-26
   ...

 > Are replaced with a formula that keeps column width at zero but
 > preservers column count:
 > 
 > 	(20)    else
 > 	(21)      N := column-count;
 > 	(22)      W := 0;
 > 	(23)      column-gap := (available-width/column-gap);
 > 	(24)    fi

This is a simplification. It could work. But users will not see any content.

 > Or if it is not acceptable to change column gap, why not just go to 1 column???
 > 
 > 	(20)    else
 > 	(21)      N := 1;
 > 	(22)      W := available-width;
 > 	(23)    fi

This is also simpler. And users will see content. It's a fairly
dramatic change though: you go from N very narrow columns to 1 wide
column over a short range:

  column-gap: 49; column-count: 3; width: 100; /* 3 columns  of 0.66 width */
  column-gap: 50; column-count: 3; width: 100; /* 1 column   of 100 width */
  column-gap: 51; column-count: 3; width: 100; /* 1 column   of 100 width */

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Tuesday, 8 February 2011 20:26:36 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:37 GMT