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

RE: [css3-multicol] pseudo-algorithm

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Tue, 8 Feb 2011 21:10:17 +0000
To: Håkon Wium Lie <howcome@opera.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <D51C9E849DDD0D4EA38C2E539856928411E6E41A@TK5EX14MBXC213.redmond.corp.microsoft.com>
Users already don't see any content when the normal formula hits zero-with (unless content is positioned), and we've just agreed it's ok...

With this
	(17)    if ((column-count - 1) * column-gap < available-width) then
	(18)      N := column-count;
	(19)      W := (available-width - ((N - 1) * column-gap))/N;
 	(20)    else
 	(21)      N := column-count;
 	(22)      W := 0;
 	(23)      column-gap := (available-width/column-gap);
 	(24)    fi

It goes like this:

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

-----Original Message-----
From: Håkon Wium Lie [mailto:howcome@opera.com] 
Sent: Tuesday, February 08, 2011 12:26 PM
To: Alex Mogilevsky
Cc: www-style@w3.org
Subject: 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.
Received on Tuesday, 8 February 2011 21:10:51 GMT

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