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

Re: [css3-multicol] pseudo-algorithm

From: Morten Stenshorne <mstensho@opera.com>
Date: Wed, 09 Feb 2011 08:31:55 +0100
To: Alex Mogilevsky <alexmog@microsoft.com>
Cc: HÃ¥kon Wium Lie <howcome@opera.com>, "www-style\@w3.org" <www-style@w3.org>
Message-ID: <8739nxslxw.fsf@opera.com>
Alex Mogilevsky <alexmog@microsoft.com> writes:

> 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

I don't understand (23). Did you mean this, by any chance:

(23)      column-gap := (available-width/(column-count - 1));

> 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 */

With my version of (23) it does. :)

-- 
---- Morten Stenshorne, developer, Opera Software ASA ----
---- Office: +47 24164206 ---- Cellular: +47 93440112 ----
------------------ http://www.opera.com/ -----------------
Received on Wednesday, 9 February 2011 07:32:33 GMT

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