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

[css3-multicol] Pseudo-algorithm column-width expressions

From: Rich Dougherty <rich@rd.gen.nz>
Date: Fri, 10 Jun 2011 14:17:57 +1200
Message-ID: <BANLkTinQW968gOwYAEHbRfYQw6tZg6vaHQ@mail.gmail.com>
To: www-style@w3.org
I noticed a small issue with the expressions used for calculating
column width (W) in the pseudo-algorithm.

(13)    W := max(0, (available-width - ((N - 1) * column-gap)) / N);
....
(17)    W := ((available-width + column-gap) / N) - column-gap;
....
(21)    W := ((available-width + column-gap) / N) - column-gap;

I think line 13 can be changed to contain the same expression used in
lines 17 and 21. i.e.

(13)    W := max(0, ((available-width + column-gap) / N) - column-gap);

Not a big deal, just a bit more consistency.

Cheers
Rich

--
http://www.richdougherty.com/
Received on Tuesday, 14 June 2011 00:44:13 GMT

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