RE: [css3-multicol] pseudo-algorithm

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 UTC